So far we have explored what charecters a regular expression could match, nowe we will look at what position those things may be in.

The two most common regular expression position matchers are ^ and $ which represent the start and end of a string or line (depending on the settings of the engine.

So the regex ^$ would represent the empty string and ^a*$ would represent a string that only contains the letter a, or could be blank.

But there are others if you want to match an exact word you can use a regexp like \bmit\b which will match mit but not smith. The ‘\b` marker will match the word bounder but not the space that comes before and after it!

Javascript only provides those markers, some other regex engines will provide others.