Answers for "regex examples match string"

5

regex password

^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\$%\^&\*])(?=.{8,})
Posted by: Guest on May-11-2020
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

Browse Popular Code Answers by Language