Class Index | File Index

Classes


Class orion.regex

Utilities for dealing with regular expressions.
Defined in: </shared/eclipse/e4/orion/I201404012230/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 Tue Apr 01 2014 22:58:24 GMT-0400 (EDT)