astrowalker2013
3 years agoOccasional Contributor
Regexep with JSONPAth Regex Match Assertion : Error with regex expression
Hi
for a test i need to verify the structure of string .
My string waited are 2 word with a comma in middle like this "totot,tata".
and I need to verify that my JsonPath expression are equivalent with this expression
I test this Regular expression /[a-z]/g,/[a-z]/g but this regex didn't functional.
What is the best Regex used to resolved my issue.
I Find the Solution and I Shared with us :
in oder verify the structure I can used this structure
([a-zA-Z-]+), *([a-zA-Z -]+)