Sat Dec 07, 2019 4:39 am
Login Register Lost Password? Contact Us


Using REGEX in reverse?

Questions around writing code and queries

Thu Nov 28, 2019 9:10 am Change Time Zone

Hi Community,

Has anyone written a 'reverse' Regular expression generator?

Normal REGEX takes a candidate textual string and checks that is conforms to some expression.

Has anyone generated test data by supplying a regular expression and returning some text that conforms to said input regular expression?

May have to return a DATASET of text as with ORs (|) there are multiple paths through the regular expression.

Weird question perhaps, well I'll just put it out there.

Yours
Allan
Allan
 
Posts: 386
Joined: Sat Oct 01, 2011 7:26 pm

Return to Programming

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron