In terms of regex, ^
means the beginning of the string, meaning
^/string
will match /string123
but not /application/string
/string
will match both /string123
and /application/string
^string
will not match /string
but will match string/123
or string123
string
will match all /string
, string
, 123string
and any thing that contains the word string