The Bridge uses the ICU's Regular Expressions package to compute regular expressions.
This appendix is divided into three parts:
The character The exceptions are:
|
In all other cases, the EAL literal equals the RE.
For example, the following EAL statement replaces all occurrences of \ by x. To match a \ in a RE we need the expression \ \. If we use an EAL literal, we need to escape each backslash again, getting:
set changed = aString.replace("\\\\", "x"); |