Thread: Regex examples
View Single Post
Old 01-15-2013, 08:20 PM   #174
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,820
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Ahu Lee View Post
I'm sorry I have gone through the thread, but couldn't find anything that would work for my needs. I've read the wiki article, tried in vain many different combinations, but I'm obviously doing something wrong.

I would appreciate a little help on this:
I need to make a simple match to grab this thing with whatever characters within the id name:
<h2 class="story_title" id="(whatever)">

Many many thanks!

----------Edited------------

I found one in the "Saved Searches" in Sigil, touched it up a bit and it did the job.
(?sU)<h2([^>]*>.*)
You mean, like:
Code:
<h2 class="story_title" id="(.+?)">
which grabs whatever when enclosed wit all the other stuff shown
theducks is online now   Reply With Quote