Class Index | File Index

Classes


Class orion.regex

Utilities for dealing with regular expressions.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/regex.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Utilities for dealing with regular expressions.
Method Summary
Method Attributes Method Name and Description
<static>  
orion.regex.escape(str)
Escapes regex special characters in the input string.
<static>  
orion.regex.parse(str)
Parses a pattern and flags out of a regex literal string.
Class Detail
orion.regex()
Utilities for dealing with regular expressions.
Method Detail
<static> {String} orion.regex.escape(str)
Escapes regex special characters in the input string.
Parameters:
{String} str
The string to escape.
Returns:
{String} A copy of str with regex special characters escaped.

<static> {Object} orion.regex.parse(str)
Parses a pattern and flags out of a regex literal string.
Parameters:
{String} str
The string to parse. Should look something like "/ab+c/" or "/ab+c/i".
Returns:
{Object} If str looks like a regex literal, returns an object with properties
pattern
{String}
flags
{String}
otherwise returns null.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 18 2017 12:15:12 GMT-0500 (EST)