Re: capture more than one regex matching (oneliner)

2012-03-29 Thread John W. Krahn
Christian wrote: Hi, Hello, is there easy way to capture more than one matching and print this out? In the example below the first matching is suppressed. cat file | perl -nle '/p2=(.+)(?=&p3)/&& /p13=(.+)(?=&p14)/&& print $. . ";" . $1 . ";". $2' perl -nle'/(?=.*p2=(.+)&p3)(?=.*p13

capture more than one regex matching (oneliner)

2012-03-29 Thread Christian
Hi, is there easy way to capture more than one matching and print this out? In the example below the first matching is suppressed. cat file | perl -nle '/p2=(.+)(?=&p3)/ && /p13=(.+)(?=&p14)/ && print $. . ";" . $1 . ";". $2' Thanks for any help. Christian -- To unsubscribe, e-mail: begi