Re: Some perl regex help

2008-06-30 Thread Perrin Harkins
On Mon, Jun 30, 2008 at 12:47 AM, Alexander Burrows <[EMAIL PROTECTED]> wrote: > I've been trying > to read around forums and regex documents for perl but they seem unorganized > and cryptic. So any help would be appreciated. This list is for mod_perl, not general Perl help. In the future, if you

Re: Some perl regex help

2008-06-30 Thread Alexander Burrows
This worked great thanks. Was exactly what I was looking for. -Alexander James Smith-7 wrote: > > > > On Sun, 29 Jun 2008, Alexander Burrows wrote: > >> >> Hello again all. Been a while since I've posted here but needed some help >> on >> a regex I was trying to write. >> >> $line =~ tr/(\(

Re: Some perl regex help

2008-06-30 Thread James Smith
On Sun, 29 Jun 2008, Alexander Burrows wrote: Hello again all. Been a while since I've posted here but needed some help on a regex I was trying to write. $line =~ tr/(\(|\)|<|>)/(\(|\)|\<|\>)/g; Simplest approach is to make a hash of the substitutions and use an "e" executed regexp my %ha