Re: Matching parentheses with Regular Expressions
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 04 Jul 2008 18:50:01 GMT
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
.
- Follow-Ups:
- Re: Matching parentheses with Regular Expressions
- From: Mark Space
- Re: Matching parentheses with Regular Expressions
- References:
- Matching parentheses with Regular Expressions
- From: James
- Re: Matching parentheses with Regular Expressions
- From: James
- Re: Matching parentheses with Regular Expressions
- From: Joshua Cranmer
- Re: Matching parentheses with Regular Expressions
- From: James
- Re: Matching parentheses with Regular Expressions
- From: Joshua Cranmer
- Re: Matching parentheses with Regular Expressions
- From: shakah
- Re: Matching parentheses with Regular Expressions
- From: Mark Space
- Matching parentheses with Regular Expressions
- Prev by Date: Re: Matching parentheses with Regular Expressions
- Next by Date: Re: easy way to spank the monKey
- Previous by thread: Re: Matching parentheses with Regular Expressions
- Next by thread: Re: Matching parentheses with Regular Expressions
- Index(es):
Relevant Pages
|