Skip to main content.
Index | Support | Documentation | FAQ

MySQL Regular Expressions

I have used the Ad-Hoc report to look for booster+ but it has ignored the + and listed all the records containing 'booster'.

Why?

The Ad-Hoc report takes advantage of what is called a 'Regular Expression'. By using these it is possible to narrow down the search using specific characters as we will show later. The plus symbol (+) is one such character.

To save you looking at the rest of this guide, if you are wanting to use any of the following characters: +$.*?|(){}[]^ in the text your are looking for you will get weird results. You need to 'Escape' these characters, that is, tell the system NOT to treat them as special characters - you do this by prefixing them with two back slashes (\) e.g. to look for booster+ enter booster\\+

What are these special characters used for?

So comming back to the earlier problem, looking for booster+ was translated to look for 'booste' followed by one or more 'r's - so yes it would return just booster.