time-to-botec/js/node_modules/@stdlib/utils/regexp-from-string/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

30 lines
544 B
Plaintext

{{alias}}( str )
Parses a regular expression string and returns a new regular expression.
Provided strings should be properly escaped.
If unable to parse a string as a regular expression, the function returns
`null`.
Parameters
----------
str: string
Regular expression string.
Returns
-------
out: RegExp|null
Regular expression or null.
Examples
--------
> var re = {{alias}}( '/beep/' )
/beep/
> re = {{alias}}( '/beep' )
null
See Also
--------