Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Regx help

by Punitha (Priest)
on Oct 23, 2008 at 04:22 UTC ( #718944=note: print w/replies, xml ) Need Help??


in reply to Regular expression help

Hi

Please take a note about the regular expressions here http://perldoc.perl.org/perlretut.html and do you want something like this?

use strict; my $string = "Required Not_Required Not_Required Required"; while($string=~/\bRequired\b/gi){ print "$&\n";##Here it will print only required text with non word + character before and after }

Punitha

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://718944]
help
Chatterbox?
[erix]: "can you tune our database?"
[thezip]: .oO( "A Well-Tempered Database" ? )
[Corion]: I'd like a well-tempered tuning
[Corion]: thezip: :D
[erix]: haha

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-11-17 19:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (270 votes). Check out past polls.

    Notices?