Thread: What a regex is
View Single Post
Old 05-05-2010, 09:30 AM   #4
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
I think you are missing the point. There are reasons why we don't see huge lists of useful regexps, but those reasons are something else than you seem to think (pardon me if I am wrong). It's not difficult to write a good regexp, and it's not difficult to put together a huge list. The problem is, each regexp is suited for one particular situation, and with e-books, the typical case is that this situation will not repeat very often, and even if it does, it requires a fair knowledge of regexps to be able to pick the right one for each situation. I mean, people can write you some excellent regexps (in fact, they did; there used to be a thread here on MobileRead, called "Tyrannosaurus regexp", I believe, which contained quite a few fine examples), but unless you are good enough with regexps, you won't be able to recognize which regexp is useful for your particular situation. And if you are good enough, it is usually easier to simply write a new regexp than to sift through ten or twenty or hundred pre-made regexps...
pepak is offline   Reply With Quote