in reply to Re: Re: Regex confusion
in thread Regex confusion
the \w takes care of letters, numbers and _. I always escape the - out of habit but is unnecessary. The /i is redundant since the \w is case insensitive.m/((?:\w|\\\&|\-)*)\.((?:\w|\\\&|\-)*)/
update -- of course a simple split would do the trick.m/(.*?)\.(.*)/
my ($client, $project, $subproject) = split /\./, $x;
--
flounder
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re:^3: Regex confusion
by neilwatson (Priest) on Aug 07, 2002 at 18:08 UTC |