#!perl -wl use strict; $_ = "[ABC AB AB12/83]"; print "I have a string like this\n$_"; s{\[([A-Z_]+)\s([A-Z_]+)\s([A-Z_]+)(\d+)/(\d+)\]}{$1_$2_$3$4_$5}; print "I would like to end up with\n$_";
perl -e"\$_=qq/nwdd\x7F^n\x7Flm{{llql0}qs\x14/;s/./chr(ord$&^30)/ge;print"
In reply to Re: Substituting in the substitution!
by pizza_milkshake
in thread Substituting in the substitution!
by Mondongo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |