Thread: Regex examples
View Single Post
Old 03-27-2025, 09:49 PM   #785
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,625
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by ElMiko View Post
when what I'm trying to do is match numbers nested within ANY repeated string of characters.
Oops. Missed this last line. Thought it was part of your signature.

Try...

PHP Code:
>\p{P}+(\d+)\p{P}+< 
Karellen is offline   Reply With Quote