Re: Use parentheses in translation strings

2008-01-02 Thread Nihilism Machine
i tried the unsubscribe email and the help email addy for this list, i still cant unsubscribe, the emails produce no results/returned emails etc. ugh. On Jan 2, 2008, at 10:35 AM, Paul Lalli wrote: On Jan 1, 4:20 pm, [EMAIL PROTECTED] wrote: Hi there, I'm quite new to perl, and now having

Re: Use parentheses in translation strings

2008-01-02 Thread Nihilism Machine
how do i unsubscribe from this list? On Jan 2, 2008, at 12:14 PM, Tom Phoenix wrote: On Jan 1, 2008 1:20 PM, <[EMAIL PROTECTED]> wrote: I'm quite new to perl, and now having problem with using parentheses in translation strings. For example, I want to replace the 4 digit year code '' w

Re: Use parentheses in translation strings

2008-01-02 Thread Chas. Owens
On Jan 2, 2008 10:48 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Jan 1, 2008 4:20 PM, <[EMAIL PROTECTED]> wrote: > > Hi there, > > > > I'm quite new to perl, and now having problem with using parentheses > > in translation strings. For example, I want to replace the 4 digit > > year code 'yyy

Re: Use parentheses in translation strings

2008-01-02 Thread Paul Lalli
On Jan 1, 4:20 pm, [EMAIL PROTECTED] wrote: > Hi there, > > I'm quite new to perl, and now having problem with using  parentheses > in translation strings. For example, I want to replace the 4 digit > year code '' with '(\d\d\d\d)', so it can be used for grouping in > string matching later. I e

Re: Use parentheses in translation strings

2008-01-02 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi there, Hello, I'm quite new to perl, and now having problem with using parentheses in translation strings. For example, I want to replace the 4 digit year code '' with '(\d\d\d\d)', so it can be used for grouping in string matching later. I expected the code w

Re: Use parentheses in translation strings

2008-01-02 Thread Tom Phoenix
On Jan 1, 2008 1:20 PM, <[EMAIL PROTECTED]> wrote: > I'm quite new to perl, and now having problem with using parentheses > in translation strings. For example, I want to replace the 4 digit > year code '' with '(\d\d\d\d)', so it can be used for grouping in > string matching later. Wait --

Re: Use parentheses in translation strings

2008-01-02 Thread Martin Barth
hi, you probably want to use s/// instead of tr///. # perl -wle '$_=""; s//(\\d\\d\\d\\d)/; print' (\d\d\d\d) have a look at perldoc perlop to see what tr or y really does: tr/SEARCHLIST/REPLACEMENTLIST/cds y/SEARCHLIST/REPLACEMENTLIST/cds Transliterates al

Re: Use parentheses in translation strings

2008-01-02 Thread Chas. Owens
On Jan 1, 2008 4:20 PM, <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm quite new to perl, and now having problem with using parentheses > in translation strings. For example, I want to replace the 4 digit > year code '' with '(\d\d\d\d)', so it can be used for grouping in > string matching la