Class RegExpJsToJavaConverter
java.lang.Object
org.htmlunit.javascript.regexp.RegExpJsToJavaConverter
Translates JavaScript RegExp to Java RegExp.
// [...\b...] to [...\cH...] // [...[...] to [...\[...] // [^\\1] to . // back reference in character classes are simply ignored by browsers [...ab\5cd...] to [...abcd...] // characters escaped without need should be "un-escaped" Escape curly braces that are not used in an expression like "{n}", "{n,}" or "{n,m}" (where n and m are positive integers).
// [...\b...] to [...\cH...] // [...[...] to [...\[...] // [^\\1] to . // back reference in character classes are simply ignored by browsers [...ab\5cd...] to [...abcd...] // characters escaped without need should be "un-escaped" Escape curly braces that are not used in an expression like "{n}", "{n,}" or "{n,m}" (where n and m are positive integers).
- Author:
- Ronald Brill, Leszek Hoppe, Atsushi Nakagawa, Lai Quang Duong
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RegExpJsToJavaConverter
public RegExpJsToJavaConverter()Initiate the FSM.
-
-
Method Details
-
convert
-