Hi,
I am trying to use a regular expression to search for some words in a
file after a few particular
words/characters.

Once I find the words I am looking for, I want to print only those
words.

Here's what I'm talking about.

while(<INPUT>)  {

          if (/Something\s>\s(\w+)/) {

          print "1$".
}


I realize that this will only print one word after '>\s' (i.e. $1).
However, what if there are a variable number of words after '>\s' ?
How would I print all the words and only the words that come after
'>s' ?

Thanks in advance,
Mark









-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to