I need this to work on both windows and unix
The safest way to remove line terminations across platforms is:
For that matter, you could probably just do s/\s+//g; based on the assumption that the only white space to be found in your dictionary file is the line breaks.s/[\r\n]+//;
In reply to Re: Re: Re: Regular Expression
by graff
in thread Regular Expression
by optikool
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |