0

I've implemented some regular expressions engines and now I need to test them, so I'm looking for a complete data set to test with. By data set, I mean a list of patterns with a list of strings. Is there something similar or the best way is to create data by myself?

Upd: i'm looking for POSIX regexes

7
  • I hardly think some random strings would be useful for you. You have to write some strings based on your regex engine and see the result.
    – Shafizadeh
    Apr 11, 2016 at 19:44
  • 1
    @Shafizadeh yep, agree, but I thought there is a common way of testing regex engines... i don't know,that's why i ask)
    – Polina
    Apr 11, 2016 at 20:46
  • There are multiple flavors of regular expressions. POSIX and PCRE being the two big ones. Which one are you asking for?
    – Schwern
    Apr 11, 2016 at 21:20
  • @Schwern sorry, forgot to mention, POSIX
    – Polina
    Apr 11, 2016 at 21:25
  • 1
    @Polina Too bad, PCRE has a nice suite of test data. You might try the Open POSIX Test Suite.
    – Schwern
    Apr 11, 2016 at 21:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.