Answers for "whatt is the regex for empty string"

2

regex to check non empty string

/^(?!\s*$).+/
Posted by: Guest on November-17-2020
1

regex to match empty string

/^$/ // match exactly ""
Posted by: Guest on July-31-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language