You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ignore-case flag is one JDK/Perl regex feature that is badly missing from dk.brics.automaton. Since the question mark is a reserved character, it should hopefully not break existing regular expressions? If it would, it could be made optional, hidden behind a RegExp constructor flag.
If that flag-style is acceptable, I would be willing to take a shot at implementing it.
The text was updated successfully, but these errors were encountered:
The easiest is probably to add an automaton conversion operation (in SpecialOperations.java) that, for example, converts from lower-case to upper-case in all transitions, and then apply a similar transformation to the strings used in matching.
You are most welcome to add such an automata operation.
I'm not sure why the question mark is relevant in this. (Note that the question mark is already used in the regexp notation.)
The ignore-case flag is one JDK/Perl regex feature that is badly missing from
dk.brics.automaton
. Since the question mark is a reserved character, it should hopefully not break existing regular expressions? If it would, it could be made optional, hidden behind a RegExp constructor flag.If that flag-style is acceptable, I would be willing to take a shot at implementing it.
The text was updated successfully, but these errors were encountered: