Home Generate list of URL paths that can match a regular expression (or similar)
Reply: 0

Generate list of URL paths that can match a regular expression (or similar)

Tom
1#
Tom Published in 2017-09-12 21:42:41Z

Say your program can imports URL paths for seeding a crawl.

A user wants to define a pattern that should function a see - e.g.

http://example\.com/mypage-[0-9][0-9][0-9]?/jump(suit|er)/

Could just be a simplified version of regex syntax if need to be - but something like above would be required for the user to enter.

From the above my software would then need to generate a long list like:

http://example.com/mypage-0/jumpsuit/
http://example.com/mypage-0/jumper/
http://example.com/mypage-1/jumpsuit/
http://example.com/mypage-1/jumper/
...
http://example.com/mypage-998/jumper/
http://example.com/mypage-999/jumper/

Is there anything around for Delphi that can do what I want? Or am I missing an obvious way at achieving what I want that does not require to write a regex parser from scratch :)

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.307942 second(s) , Gzip On .

© 2016 Powered by cudou.com design MATCHINFO