Using RegEx
Full RE2 syntax reference at > https://github.com/google/re2/wiki/Syntax Go RegExp doc at > https://golang.org/pkg/regexp/ More about general concepts > https://www.regular-expressions.info/
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