in reply to Re: Space or end of string in regex
in thread Space or end of string in regex
This works perfectly, thank you. I'm not worried about multiple spaces as a single space is enough to indicate that this is a keyword that needs special treatment and multiple spaces are handled in that routine. My problem was not realising that I needed to anchor at the start. I was therefore looking for a character class that contained space or end of string and therefore, once again, flailing at demons.
Am I right in thinking that replacing the slashes with square brackets is optional?
Regards,
John Davies
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Space or end of string in regex
by BrowserUk (Patriarch) on Feb 02, 2012 at 23:15 UTC | |
Re^3: Space or end of string in regex
by Marshall (Canon) on Feb 03, 2012 at 20:47 UTC |
In Section
Seekers of Perl Wisdom