perldoc perlre Look at the /s switch for regexes.
-----Original Message----- From: sudhindra k s [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 12:23 AM To: [EMAIL PROTECTED] Subject: Searching a string Hi I have a string (not a file ) which looks something like this : tools : Abcdef abc: all: def: all: Now i want to search the string for all occurances of "all:" and print that line containing "all:" How can this be done? Thanks Sudhindra -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>