time-to-botec/squiggle/node_modules/@stdlib/utils/escape-regexp-string/docs/repl.txt

23 lines
320 B
Plaintext
Raw Normal View History

{{alias}}( str )
Escapes a regular expression string.
Parameters
----------
str: string
Regular expression string.
Returns
-------
out: string
Escaped string.
Examples
--------
> var str = {{alias}}( '[A-Z]*' )
'\\[A\\-Z\\]\\*'
See Also
--------