Parses a string in a file. The string uses an apostrophe as line terminator. Ignores apostrophes predeeded by the escape character, "?". Clever enough not to parse the same file more than once.
perl -p -i.bak -e "s/([^?])'([^\n])/$1'\n$2/g" input.txt
In reply to Re^2: Simple Substitution
by winter67uk
in thread Simple Substitution
by winter67uk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |