Regular Expression For Empty String

Category: Strings

A regular expression to match all empty strings. Can be used to replace empty strings with custom characters in your document.

/^$/g

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.