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?