B
Billy Patton
I'm using regexp coach to assist me but more heads would be helpful
Here is a sample of the data
dogs,10,cats
dogs,[20,30],cats
dogs,[40,[50,60]],cats
I'm looking to validate input data (above) based on reg expression.
To verify legal input.
Ignore the dogs and cats, its just a filler
I currently have 3 different lines that I would like to combine
\d+,?
\[\d+,\d+\],?
[\d+,\[\d+,\d+\]\],?
Here is what I would like to do but regex coach isn't liking it
(\d+,?|\[\d+,\d+\],?|[\d+,\[\d+,\d+\]\],?)
Since the () allows for grouping, I was hoping the | would or it within
the group.
Here is a sample of the data
dogs,10,cats
dogs,[20,30],cats
dogs,[40,[50,60]],cats
I'm looking to validate input data (above) based on reg expression.
To verify legal input.
Ignore the dogs and cats, its just a filler
I currently have 3 different lines that I would like to combine
\d+,?
\[\d+,\d+\],?
[\d+,\[\d+,\d+\]\],?
Here is what I would like to do but regex coach isn't liking it
(\d+,?|\[\d+,\d+\],?|[\d+,\[\d+,\d+\]\],?)
Since the () allows for grouping, I was hoping the | would or it within
the group.