Re: Off Topic RegEx Question

2003-08-29 Thread mpd
On Thu, Aug 28, 2003 at 08:26:43AM +0900, Roger Williams wrote: I know thins is not the place but I know one of you know this one off the top of your head. I have: $list = dog 1 1 1 cat 2 1 snake 111 and I want to end up with: dog 1 cat 2 snake 1 I thought $list =~ s/ \d \d/ \d/g;

Re: Off Topic Regex Question

2003-08-29 Thread Mikko Työläjärvi
On Thu, 28 Aug 2003, Roger Williams wrote: I know thins is not the place but I know one of you know this one off the top of your head. I have: $list = dog 1 1 1 cat 2 1 snake 111 and I want to end up with: dog 1 cat 2 snake 1 I thought $list =~ s/ \d \d/ \d/g; would do the trick, but

Re: Off Topic RegEx Question

2003-08-28 Thread David Landgren
Roger Williams wrote: I know thins is not the place but I know one of you know this one off the top of your head. I have: $list = dog 1 1 1 cat 2 1 snake 111 and I want to end up with: dog 1 cat 2 snake 1 I thought $list =~ s/ \d \d/ \d/g; would do the trick, but that gives me: dog d 1