We don't bite newbies here... much | |
PerlMonks |
Re: Regular Expression Problemby Chmrr (Vicar) |
on Nov 26, 2002 at 20:19 UTC ( [id://215922]=note: print w/replies, xml ) | Need Help?? |
To rephrase your problem in a way that may make the answer more obvious, you need to:
Armed with this knowledge, we can go about writing something that does this. I don't know enough about your problem to do #3 above reliably, so you'll probably have to change that regex in the following code:
I hope that makes some amount of sense. perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|