Re: regular expression problem
- From: "Laffin" <laffinone@xxxxxxxxx>
- Date: 25 May 2006 17:44:59 -0700
condor wrote:
I want to select a text between square brackets. As it may contain
accents and punctuation I try to use the negation:
"\[([^\]])\]"
However, this does not work and the problem is with the closing square
bracket ("]").
My questions are:
- Is "\]" some reserved sequence with a special meaning.
- if so, how can I work around that and still get functionality I want
I use hexcodes myself....
\x5b = [
\x5d = ]
so ya prolly looking at
"\x5B(.*(?=\x5D))\x5D"
.
- References:
- regular expression problem
- From: condor
- regular expression problem
- Prev by Date: Pipe email with attachments
- Next by Date: Change font in PHP
- Previous by thread: Re: regular expression problem
- Next by thread: Pleas Help. Need to extract html for a list of URLs
- Index(es):
Relevant Pages
|