And here we find the problem.  :-)  Studio and CF (the server) use
totally different regex engines (which is a pain in the arse).

Studio uses essentially the same engine as CF5.  It doesn't support
nongreedy matches, the (? construct (as you pointed out), lookahead, and 
other nice things.

IIRC (and I could be off on this) the limitation on the length of file
the engine will accept is around 20k.  The limitation on the length of
regex is around 512 chars, I think.  But it's been a while since I've
really used this engine.

With regard to looking for the select...
You could try using ([^<]*|<option)* for the "between the selects" bit. 
   I think that would work.  Untested, YMMV, caveat emptor, worth what 
you paid for it, etc.  :-)

--Ben

chris porter wrote:
> should and does are often times mutually exclusive :)
> 
> i've narrowed most of the problem down to a few things: 1) Studio MX
> 04's 'find' doesnt seem to support regexes over a certain length
> (dont have any documentation to show that though) 2) studio MX 04
> doesnt support (?regex)  (non remembering refrences) 3) studio MX 04
> doesnt seem to support the CF classes such as [[:print:]] 4) studio
> mx 04 doesnt support . matching CRLF
> 
> i'm reasonably sure that all 4 of those 'un supported' things are
> actually supported in CF MX and higher..
> 
> that still doesnt quite solve the problem of the greediness factor...
> since i need everything between the start & stop tag of some html.
> and the issue being that if that stoptag occurs later on in the data,
> thats the one that gets matched :(
> 
> i'm kinda eating my own words too since i'm telling someone not to
> use greediness stuff in a different post because it'll bite you in
> _exactly_ the same way its biting me.. i think i'm just gonna switch
> over to an exact match setup and include the option tag patterns.
> that'll solve the prob for now. unless you have some ideas ;)
> 
> -chris


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:21:856
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to