Re: quoting meta chars in regex containing variables

2009-08-29 Thread Peter Daum
Chas. Owens wrote: On Sat, Aug 29, 2009 at 11:44, Peter Daum wrote: I'm struggling with a tricky quoting problem: I need to split lines divided by some delimiter; - The delimiter usually will be '|', but can be changed, so it needs to be variable. - Furthermore, the columns may also contain

Re: quoting meta chars in regex containing variables

2009-08-29 Thread Chas. Owens
On Sat, Aug 29, 2009 at 11:44, Peter Daum wrote: > I'm struggling with a tricky quoting problem: > > I need to split lines divided by some delimiter; > > - The delimiter usually will be '|', >  but can be changed, so it needs to be variable. > - Furthermore, the columns may also contain the delimit

quoting meta chars in regex containing variables

2009-08-29 Thread Peter Daum
I'm struggling with a tricky quoting problem: I need to split lines divided by some delimiter; - The delimiter usually will be '|', but can be changed, so it needs to be variable. - Furthermore, the columns may also contain the delimiter, in which case it is quoted by a backslash No problem