> Thanks Guys this is good however what does character class inside the > square brackets mean.. > I think I need to get mastering regular expressions book..
Read: # perldoc perlretut and: # perldoc perlre which will help give you an understanding of regex's. This is only my opinion of course, and I still have a long way to go with this, but character classes are well defined and described within. Note that all Perl books seem great (as far as my reading) so let me know if you actually buy/read the book and how it is. (I just bought Perl -- Objects, References and Modules, and it's great so far (O'Reilly of course)). Just my .02 Steve > > Mandar > >> >> while (/(susan[^.?!]+the\s+water\b)/ig) { >> print $1,"\n"; >> } >> >> Jenda >> ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== >> When it comes to wine, women and song, wizards are allowed >> to get drunk and croon as much as they like. >> -- Terry Pratchett in Sourcery >> >> >> > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>