in reply to want regex to strip "(xxx)"
Rather than using a regex, if the pattern is always "some-stuff one-or-more-spaces some-more-stuff" you could use a substr - index combination, like:
where the index function returns the position of the first space and substr pulls out the part of the string to the left of that position. Looks more like Visual Basic than Perl, but in the spirit of "more than one way to do it" works for this pattern.$Path = substr($Path, 0, index($Path,' '));
Speedy tries to live in the moment
|
|---|