How about...

        \[UK NARIC:(.*?)\]

... just guessing mind, I love these RegEx questions :OD

Ade

-----Original Message-----
From: Mark Woods [mailto:[EMAIL PROTECTED]
Sent: 09 August 2004 12:38
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] RegEx madness, do I need glasses?


string like " [Yrs:4] [UK NARIC:British Bachelor degree std   ] "

I want to get "British Bachelor degree std"

I have...
REFind("\[UK[[:space:]]+NARIC\:([^\]]+)[[:space:]]*]",qExisting.notes,1,true
)
which doesn't match correctly

Now, I don't see anything wrong with that, so while testing, I changed the
source string to...
" <Yrs:4> <UK NARIC:British Bachelor degree std   > "

and the RegEx to...
"\<UK[[:space:]]+NARIC\:([^\>]+)[[:space:]]*>"

and it works dandy

So, WTF is wrong with this sub-expression: ([^\]]+)
when this one works just fine: ([^\>]+)

Am I seeing a CF regex bug or is my vision just blurred??


Help!

Mark
(BTW, yeah, I know I can workaround this, but that ain't the point)




--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]


-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to