ExCellerate.Functions.General.Underscore (excellerate v0.4.0)

Copy Markdown View Source

Converts a string to underscore case by downcasing, replacing spaces and slashes with underscores, and stripping other non-alphanumeric characters.

Examples

underscore('Hello World')    'hello_world'
underscore('Hello/World')    'hello_world'
underscore('Foo! @Bar#')     'foo_bar'