Skip to content

flbeta_function_escapeForRegex

Wesley de Groot edited this page Nov 1, 2016 · 18 revisions
                     _          
                    (_)         
            	     _    _____ 
        	        | |  / ____|
    	            | |  | (___ 
	            _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                     v0.0.8 Beta

Function escapeForRegex

_.escapeForRegex(str)



Escape a string for safe regex use!

Parameter list

Type @var Description Required
object [object] Wrapper Optional
string str the string to escape Required

Example:

_.escapeForRegex('myPotensialRegexUnSafeString')


Returns:

string




[Back to function list](https://github.com/wdg/_.js/wiki/Function%20List%20(Beta))
Clone this wiki locally