prettify

Prettifies a given string using regex

pure nothrow @safe
string
prettify
(
string str
,
string regex = r"(?<!^)(?=[A-Z])"
)

Parameters

str string

The string to be prettified

regex string

The regex that should be used to prettify (Default = (?<!^)(?=[A-Z]))

Return Value

Type: string

The new, prettified string

Meta