After chomping a given line of input, you should trim off the trailing whitespace before applying any regex pattern to the line. That way, Xi Wong $ will be reduced to Xi Wong$ and will be better detected during pattern matching.
In reply to Re: Edit a New file in place after reading it in
by jkeenan1
in thread Edit a New file in place after reading it in
by perlynewby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |