If I understand your question properly...
$string = "il asdfasdfasdf"; $string =~ s/([\S]{2})//; $tag = "<$1>"; $string = $tag . "$string ". $tag
Would do what you're asking for. I'm sure a true perl master could condense that into 1-2 lines, but I'm just a little perl footsoldier right now...
Peace,
LassiLantar
In reply to Re: tagging question
by LassiLantar
in thread tagging question
by bagerson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |