Re: Matching parentheses with Regular Expressions



On Fri, 04 Jul 2008 11:36:12 -0700, Mark Space
<markspace@xxxxxxxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :

You also might get rid of some of those backslashes by substituting
another character, then using replace() on the string before compiling it.

Other ideas:

1. Use Quoter to insert \ quoting, both for regex and Java strings.
see http://mindprod.com/applet/quoter.html

2. implement one or more of my regex student projects
http://mindprod.com/project/regexutility.html
http://mindprod.com/project/regexcomposer.html
http://mindprod.com/project/regexdebugger.html
http://mindprod.com/project/regexproofreader.html

3. use \Q ... \E
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • A C++ Whishlist
    ... Now I have come to really like Java Strings. ... a String is a String is a String. ... I believe header files are nothing but a nuisance. ... or declare it to be thrown in the function declaration. ...
    (comp.lang.cpp)
  • Re: java strings read and write
    ... > these java strings to a file. ... The way I read the Java API, the format is simply the UTF-8-encoded string ... * Supplementary characters are represented in the form of surrogate pairs. ...
    (comp.lang.ruby)
  • Re: Tool for creating RegExp from string
    ... Are there any tool available that can create basic regular expression from a ... Quoter will create a regex string, ...
    (comp.lang.java.programmer)
  • Re: An ISO-8852-2 Java String? Does such a thing exist?
    ... > They are just telling you that sorts of strings they want to exchange ... Inside you will use standard Java strings and convert on ... String to ISO-8859-2 before calling the method. ... not an encoded String. ...
    (comp.lang.java.programmer)
  • Re: A C++ Whishlist
    ... > Hattuari wrote: ... >> perhaps I just need to adjust. ... Now I have come to really like Java Strings. ... a String is a String is a String. ...
    (comp.lang.cpp)