Re: Cosolidate multiple regular expression

2003-12-30 Thread drieux
On Dec 30, 2003, at 8:45 AM, Kevin Old wrote: [..] $ko =~ s/\r/\\page/g; # change returns to \page $ko =~ s/\f//g; # remove formfeeds $ko =~ s/\t/\\tab/g; # change tabs to \tab $ko =~ s//\\/g; # escape backslashes $ko =~ s/{/\\{/g; # escape left curly $ko =~ s/}/\\}/g; # escape right curly $ko

Cosolidate multiple regular expression

2003-12-30 Thread Kevin Old
Hello everyone, I have the following regular expressions that I'm performing on a block of text and was wondering if anyone saw a way to consolidate the 9 regex's into a few? $ko =~ s/\r/\\page/g; # change returns to \page $ko =~ s/\f//g; # remove formfeeds $ko =~ s/\t/\\tab/g; # change tabs to \