Regular Expression to check for Empty fields

May 18, 2016 at 3:26pm
I need a regular expression to check for empty field within an input string...
i Tried working with a expression at http://www.tutorialspark.com/javascript/JavaScript_Regular_Expressions_MetaCharacters.php but its not working well please help
May 18, 2016 at 9:42pm
How do you define "empty field"?

[edit]
If you are trying to parse a CSV or something, just check for some number of spaces surrounded by delimiters:

(^|,)\s*(,|$)
Last edited on May 18, 2016 at 9:43pm
Topic archived. No new replies allowed.