am currently trying to generate a string that matches a given regex, I've been working on this for few days without good solution. I tried using the Generex library which works find until i put in some more complicated regex like this
"^((\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)\s*[;]{0,1}\s*)+$"
or
"(?:(NGN|USA|TWN|IND|VN)\h*,?\h*(?!.*\1))+"
,
this have proven to be the biggest issue I've encountered in Software Engineering Field.
The question is how can i generate random matching String from Regex correctly.
NOTE: Using Regex to generate Strings rather than match them doesn't work for me, Generex works with more simpler format of regex rather than the complicated onces, the two examples above is kinda complicated, but those regex isn't decided by me, so there is no way i can modify it.