Changes the regular expression generation library to RgxGen.
(Optional): Description
An exception is thrown when RgxGen fails to generate or takes more than 10 seconds.
The option of generating random values(or null) when RgxGen fails was considered but not implemented because the fixture generation will still fail at the ArbitaryValidator
Some of the cases mentioned in the referenced issues (^[\\S]+$, \\S+) are now generatable. However, cases like ^(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{8,20}$ fails to be generated because the library has limitations (https://github.com/curious-odd-man/RgxGen?tab=readme-ov-file#limitations).
How Has This Been Tested?
Added RegexGeneratorTest.
Is the Document updated?
Will add a subsequent commit to update the document once this PR is reviewed and finalized.
Summary
Related to #772, #713
Changes the regular expression generation library to RgxGen.
(Optional): Description
ArbitaryValidator
^[\\S]+$
,\\S+
) are now generatable. However, cases like^(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{8,20}$
fails to be generated because the library has limitations (https://github.com/curious-odd-man/RgxGen?tab=readme-ov-file#limitations).How Has This Been Tested?
Added RegexGeneratorTest.
Is the Document updated?
Will add a subsequent commit to update the document once this PR is reviewed and finalized.