Are you looking to strip the c off the front and the f or l off the back?
perl -e '$tgt =~ s/\bc?(\w+?)(?:f|l)?\b/$1/g;'Feed the target token into it to strip off leading c and trailing f or l. Of course, this would make a bool into a boo.
In reply to Re: search/replace one liners without clobbering
by ExReg
in thread search/replace one liners without clobbering
by f77coder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |