Using RegEx

Full RE2 syntax reference at > Go RegExp doc at > More about general concepts >

Basic Regex

Basics of Regular Expressions

You can match a word by putting it between two brackets.

As example, this will only match the word "Dinosaur": (Dinosaur)

To match anything of any length, use .*.

Character classes

To match a word, you put it between two brackets.

Example: (Banana)

Understanding Regex

If you still do not know what Regex are or want to know more. Check out the cheat sheet on the site below.

Great tools for writing and testing Regex

Last updated