3 ms·
https://shkspr.mobi/blog/2021/05/the-74000-numbers-of-barclays-bank/#comment-215502 https://shkspr.mobi/blog/2021/05/the-74000-numbers-of-barcla... it's mention
by Recursing 5y ago
https://shkspr.mobi/blog/2021/05/the-74000-numbers-of-barclays-bank/#comment-215502 https://shkspr.mobi/blog/2021/05/the-74000-numbers-of-barcla... it's mentioned in another comment that indeed they forgot the anchors
The "correct" regex is 11KB and can be found here https://gist.github.com/jes/e678e4300d1cfcbcc12b46aaa7e58e30 https://gist.github.com/jes/e678e4300d1cfcbcc12b46aaa7e58e30
I agree with another comment here that the 1.3MB JSON is a better solution though
- ahmedfromtunis 5y agoI'm sure that this regex wasn't manually created. Is there a service or tool to create such regex?
- Recursing 5y agoIndeed, here is the source from the linked comment https://gist.github.com/jes/c7b848220bc36d8ae3771cd77f232d0c https://gist.github.com/jes/c7b848220bc36d8ae3771cd77f232d0c
- philjohn 5y agoYou can go a long way by building a Trie and walking it to autogenerate a regex, although optimising it is a more complex challenge.