Thread: Regex examples
View Single Post
Old 10-31-2025, 03:13 PM   #802
BillPearl
Junior Member
BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.BillPearl ought to be getting tired of karma fortunes by now.
 
Posts: 8
Karma: 591908
Join Date: Jun 2011
Device: Kindle
For a string of letters and numbers
([^>]+)(.*?)
\w to match any single alphanumeric character: 0-9, a-z, A-Z, and _ (underscore)
\s to match any single whitespace character.
\d any single digit
eg.
use some text ([^>]+)(.*?) & something to end string of letters & numbers

<a name="Chapter_LIII" id="Chapter_LIII"></a>
<a([^>]+)(.*?)></a>
BillPearl is offline   Reply With Quote