Forgot to add this  is what I used to extract the input form fields:

'<input[^>]*?name[/s]*=[/s]*(["])(.*?)\2[^>]*?>'

larry

> >'name="[^"]"' or 'name=".*?"' -- either should work.
> >
> >--Ben Doom
> >
> Thanks for you help Ben.
> 
> Unfortunately both just return a 1 - the starting position of name=".
> 
> So here's what I ended up doing - its a kludge but it works for now. I 
> hope to refine it later. First to extract the <input... strings from 
> each of the forms, I used a set of regex UDF's by Steven Levithan,
> http://blog.stevenlevithan.com/archives/rematch-coldfusion 
> 
> That returns an array of structs consisting of the starting position 
> of the search string, the length and the value.
> I then loop over the array and extract the name="..." strings using a 
> find to get the position and length of the name attribute's value. 
> Then its a matter of using mid() to extract the name.
> 
> regards,
> 
> larry 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1097
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