perl.beginners
[Top] [All Lists]

RE: Regex help

Subject: RE: Regex help
From: Beginner
Date: Mon, 03 Sep 2007 16:29:01 +0100
Newsgroups: perl.beginners

On 3 Sep 2007 at 16:15, Andrew Curry wrote:

> Think
> 
> s/(\,+\s*)+/,/g;
> 
> Should work
> 
> It produces
> SPEED OF LIGHT,LIGHT
> SPEED,TRAVEL,TRAVELLING,DANGER,DANGEROUS,PHYSICAL,CONCEPT,CONCEPTS
> 
> If that's what you want. 

Exactly what I want. Thanx,
Dp.




<Prev in Thread] Current Thread [Next in Thread>