Thread: Regex examples
View Single Post
Old 03-27-2025, 10: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,756
Karma: 9501034
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 online now   Reply With Quote