The simplest regex to grab the input string would be:
<input .*?>

Well, technically, you could shorten "input" until it's one character 
different from all other tags ("in"?) but I don't think that's really 
*simpler* so much as shorter.

--Ben Doom

Thane Sherrington wrote:
> At 12:25 PM 09/11/2007, Larry Lyons wrote:
>>> OK.  So here's what I think I've figured out.  It'll take more testing
>>> before I'm sure.
>>>
>>> You can't use a positive lookahead before the main section.  I should
>>> have known this, given the name "lookahead", right?
>>>
>>> CF does not support lookbehind.
>>>
>>> As a workaround, you can grab the whole <input...> string, then do
>>> another check to find the name="..." bit.  Not efficient or elegant, but
>>> it should do the trick.
>>>
>>> --Ben Doom
>>>
>> Thanks Ben that's where I'm at right now, I can get the input 
>> strings, now I need to get what's between name="..."
> 
> Hi Larry,
>          Would you mind sharing the way you're getting the input 
> string?  I have a really clunky method, and I wouldn't mind improving it.
> 
> T 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1098
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to