in reply to Can I have a hard stop on a match

Hi,

doc.+
This matches 'doc' followed by one or more of any character, so naturally 'DOC_NUM' matches (with /i). If you are looking for a match of your string followed by a comma or a space, make it so:
doc[,\s]

Hope this helps!


The way forward always starts with a minimal test.