Skip to main content

AI - Locations - Poor Regex

Coming soon to the Webtrends Optimize UI

O
Written by Optimize Team
Updated over a month ago

Example of use in the product

What am I seeing here?

We understand that Regular Expressions (RegExs) are not everyone's forte.

When using Regular Expressions, we scan them for common problems that could either lead to inefficiencies or outright stop the locations from working. If we find issues, we flag them to you.

When will I see a message?

We will flag things like:

  • Trailing or leading .* or .+

  • Use of non-capturing groups

  • Unnecessary escapes

  • Use of positive lookaheads where .* would do the same job

The list of what we manage to catch and flag will grow, and AI of course allows us to detect things that might not be obvious to pre-define.

How accurate is it?

All AI can hallucinate and/or make mistakes. We have tried to draw a tight box around the checks produced and the outputs you see to limit bad outcomes. If you find something inaccurate, please click the thumbs-down to flag it to us so we can train it to be smarter.

Did this answer your question?