split methods (taking a
RegExp parameter) that are missing
from Ceylon's version of
String. To create an instance of this class
use the toplevel function
Regex re = regex("[0-9]+ years"); assert(re.test("90 years old")); print(re.replace("90 years old", "very"));
no subtypes hierarchy
The regular expression to be used for all operations
For returning all matches instead of only the first
For case-insensitive matching
The zero-based position at which to start the next match
For multi-line matching where
|Attributes inherited from: |
Note: “$`” and “$'” are not supported in the pure Java implementation, and throw an exception.
When using a replacement function, if the replacement function accepts a
Replaces dollar sign patterns as described in the documentation for
Splits the input string around matches of the regular expression. If the regular expression is completely empty, splits the input string into its constituent characters. If the regular expression is not empty but matches an empty string, the results are not well defined.
Note: There are some browser inconsistencies with this implementation, as it is delegated to the browser, and no browser follows the spec completely. A major difference is that IE will exclude empty strings in the result.
Determines if the regular expression matches the given string. This call
affects the value returned by
|Methods inherited from: |