View Single Post
Old 03-25-2011, 11:45 AM   #1
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
Need help coming up with another regular expression

I'm having trouble coming up with a regular expression that will work for what I need to do in Sigil. I downloaded a regex cheatsheet and have learned to use some very basic regular expressions but it seems like I run into trouble and have to learn something new every time I try something else.

Here's what I'm wanting to do and what I've tried.
The following string is typical of a chapter subtitle and the first paragraph of a book I'm working on. Most chapters are identical to this except for the actual text of the subtitle.

<p class="chaptersubtitle">An Army of Shadows</p>

<p class="para">

I want to be able to search for this string, regardless of what the actual subtitle text is.

I've tried:

<p class="chaptersubtitle">[:print:]</p>

<p class="calibre1">

and

<p class="chaptersubtitle">[:alnum:]</p>

<p class="calibre1">

but these don't seem to work.

Do any of you regular expression gurus have any ideas?

Any assistance would be greatly appreciated.

Thanks.

- Byron
bfollowell is offline   Reply With Quote