View Single Post
Old 11-02-2010, 09:13 AM   #1
janvanmaar
Addict
janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.janvanmaar has a complete set of Star Wars action figures.
 
Posts: 219
Karma: 404
Join Date: Nov 2010
Device: Kindle 3G, Samsung SIII
Multiple line regexp

I want to convert pdf to mobi, generating the content based on regexp. The format of a chapter header is as follows:
Quote:
2.

Name of the
chapter
Catching the numbers by using simple regexp
Code:
^[0-9]+\.$
works fine. Is it possible to catch the name of the chapter as well though? As I expected, using \n in regexp does not work...
janvanmaar is offline   Reply With Quote