cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Regular Expression to check for Empty fi
Regular Expression to check for Empty fields
May 18, 2016 at 3:26pm UTC
punterf16
(1)
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 UTC
Duthomhas
(13212)
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 UTC
Topic archived. No new replies allowed.