View Single Post
Old 09-30-2020, 02:29 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,653
Karma: 205022288
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by hobnail View Post
I'm certainly no regexp wizard; what's the ?<= at the beginning of the h2 match doing? And why do you have backslashes in front of the < and >?
That's a regex lookbehind.
He's just escaping the the angle brackets with the backslash--though there's no real reason to since they aren't regex metacharacters to begin with.

How does your regex deal with more than one word between the h tags?

Last edited by DiapDealer; 09-30-2020 at 02:42 PM.
DiapDealer is offline   Reply With Quote