13 Dec 2010 18:27
a little pcre regex help
Hello, y'all! , I have to pcre match a text file that contains the following (this is a snippet).
<date>2
<Body text>The Most Holy Name of Jesus--W (II)
<date>3
<Body text>Ferial--W (IV)
<Body text>St. Frances Xavier Cabrini
<Saint kind>(See Nov. 13)
<date>4
<Body text>Ferial--W (IV)
<date>5
<Body text>Ferial--W (IV)
<Body text>St. Telesphorus
<Saint kind>Pope, Martyr--R (Comm.)
I need to match from "<date> etc." to the end of the line before the next <date>
Now, I can find simply the line with <date>, but I need the whole section. Notice the last section will end
with the end of file.
Would y'all be so kind as to help me out?
Thanks!
-Brother Gabriel-Marie
------------------------------------
PowerPro can be found here: http://www.ppro.org/
and here: http://ppro.pcrei.com/Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/powerpro-beginners/
<*> Your email settings:
Individual Email | Traditional
(Continue reading)
RSS Feed