View Single Post
Old 07-26-2010, 04:17 PM   #4
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 1,841
Karma: 1692650
Join Date: Jan 2009
Device: Kindle, iPad (not used much for reading)
Part of the problem might be that in your regex "//*[re:test(., "^SOMEONE LIKE YOU", you have the asterisk, meaning all tags, but you have no tags at all in a .txt file. Also, usually, in 'or' expressions like "(a|b|c)", the carat goes outside the leading parenthesis, and the $ goes outside the closing parenthesis. Can you use the 2 linebreaks before and after the chapter name to detect the chapters? Something like "\n\n.*\n\n"? Of course, I imagine you'd have to do that in a program, since you still don't have any tags to match.
susan_cassidy is offline   Reply With Quote