ImageGear .NET - Updated
IPCCSearch-Regex
API Reference > ViewerControl API > IPCCSearch-Regex

Namespace: Regex

IPCCSearch~Regex

ImageGear.Web Regex Search

Methods

(static) getResults Search a string of text for the given terms.(text, searchTerms) → {Array.<SearchResult>}

Parameters:
Name Type Description
text string The text to be searched.
searchTerms Array.<RegExp> An array of regular expressions used to search the text. The regular expression are expected to be something like /word/gim so that the search is global, ignores case and matches across linebreaks.
Returns:
An array of search results.
Type
Array.<SearchResult>

(static) getResultsForTerm Search a string of text for the given terms.(text, searchTerms) → {Array.<SearchResult>}

Parameters:
Name Type Description
text string The text to be searched.
searchTerms Array.<RegExp> An array of regular expressions used to search the text. The regular expression are expected to be something like /word/gim so that the search is global, ignores case and matches across linebreaks.
Returns:
An array of search results.
Type
Array.<SearchResult>