--marmots/(\w)~(\w)/$1\n$2/g
UPDATE: Changed second $1 to $2. Stupid fingers...
UPDATE2: Just realized it was wrong, as well. What was I thinking??? This should do it.
s/~/\n/g; chomp;
In reply to Re: regex replacement help
by furry_marmot
in thread regex replacement help
by mkenney
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |