in reply to Removing duplicate substrings from a string - is a regex possible?
Could be a an approach.$data=~s/((.*)\/.*\/)\2/$1/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Removing duplicate substrings from a string - is a regex possible?
by iakobski (Pilgrim) on Jul 23, 2001 at 18:09 UTC | |
by japhy (Canon) on Jul 24, 2001 at 00:04 UTC | |
by Hofmator (Curate) on Jul 24, 2001 at 13:36 UTC | |
by Hofmator (Curate) on Jul 23, 2001 at 18:40 UTC | |
by arhuman (Vicar) on Jul 23, 2001 at 19:23 UTC |