Answers for "regex match exact string"

0

regex match exact string

you want to achieve a case insensitive match for the word "rocket" 
surrounded by non-alphanumeric characters. A regex that would work would be:

\W*((?i)rocket(?-i))\W*
Posted by: Guest on August-23-2020
0

regex exact match

use ^ and $ to match the start and end of your string
^matchmeexactly$
Posted by: Guest on April-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language