List Info

Thread: Return the entire line containing a match.




Return the entire line containing a match.
user name
2007-11-05 11:50:53
How can I return the entire line of characters that contains
a certain 
pattern, "<00>" in my specific case.

TIA
Ian


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~|
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/me
ssage.cfm/messageid:1085
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/u
nsubscribe.cfm?user=22184.15789.21

Re: Return the entire line containing a match.
user name
2007-11-05 12:41:54
Assuming #lf# contains the appropriate linefeed/carriage
return combo 
for your OS....

($|#lf#)[^#lf#]*<00>[^#lf#]*(#lf#|^)

Beginning or a linefeed, not linefeeds, your string, not
linefeeds, end 
or linefeed.

I may have reversed the $ and ^ (beginning and end of
string).

--Ben Doom

Ian Skinner wrote:
> How can I return the entire line of characters that
contains a certain 
> pattern, "<00>" in my specific case.
> 
> TIA
> Ian
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RV
JP

Archive: http://www.houseoffusion.com/groups/RegEx/me
ssage.cfm/messageid:1087
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/u
nsubscribe.cfm?user=22184.15789.21

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )