-
Notifications
You must be signed in to change notification settings - Fork 131
Case insensitive regexs in parser combinators #325
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-1482?orig=1 |
@dcsobral said: |
simao mata (simao) said: One option would be a new parser method, analogous to the Thanks |
Ilan Biala (ilanbiala) said (edited on Jul 3, 2014 4:09:12 PM UTC): new Regex(string, flags) where string = Regular expression as a string This is how some other languages and libraries do it and not only is it cleaner, but .findAllIn could also be removed in favor of /abc/g for greedy regexes. |
Hi,
The
scala.util.parsing.combinator
library should provide a way of turning on case insensitive matches; having to prefix every string with a (?i) isn't ideal. E.g.,"""(?iu)\|H""".r
, just ends up cluttering up the code.The text was updated successfully, but these errors were encountered: