Regex if statament?

Hi, I am trying to use the ref regex and not the your ref regex.
Is there a way to set a rule so that the ref regex does not work if it contains 'your ref'

Use a "negative lookbehind", like this:

^(?<!your )ref: ?(.+)( )?

1 Like