Thread: Regex examples
View Single Post
Old 03-27-2025, 09:42 PM   #784
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 480
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by Karellen View Post
I assume you want to capture the number to reuse.

PHP Code:
\.+(\d+)\.+ 
Then change the \. to match whatever other character you want to find.
One of the things I'm trying to solve for is when I don't know what the repeating character is, only that it is repeating. It could be a period or a hyphen or the letter "a"... literally anything (except a number).

Last edited by ElMiko; 03-27-2025 at 09:45 PM.
ElMiko is offline   Reply With Quote