Increase allowed length of watched words

Hi guys,

I am trying to send posts containing (international) phone numbers to the approval queue, and am trying to add the following regex as a watched word:


However, it is over the current limit of 50 characters for watched words. I believe this limit made sense before regex was added as an option for watched words, but is there still a good reason for keeping this limit in place?

Or is there a way of overriding it?


I’m also need more than 50 chars for my RegEx for identifying IBAN:

\b[A-Z]{2}[0-9]{2}(?:[ ]?[0-9]{4}){4}(?!(?:[ ]?[0-9]){3})(?:[ ]?[0-9]{1,2})?\b

When do you think you will answer that request?

There is no way of overriding this, I guess we are almost at the rule of 3 here about adding a longer limit.

@david are there any concerns around doubling the size?


All watched words are combined to form a single regex, so we do need to be a little careful. But doubling to 100 is probably fine - no worse than two, 50 character “words”.

Here’s a PR for the change


That’s merged - watched words can now be up to 100 chars long.


Thank you very much for that change! Have nice holidays and christmas!

1 Like

This topic was automatically closed after 9 hours. New replies are no longer allowed.