View Single Post
 
Old 10-30-2021, 10:38 AM
davidjm davidjm is offline Windows 10 Office 2016
Novice
 
Join Date: Jun 2018
Posts: 18
davidjm is on a distinguished road
Default

Hi, trying to make this a bit more flexible.
Replaced
Code:
.Text = "[0-9]{3}–[0-9]{1}"
With
Code:
.Text = "[0-9]+–[0-9]+"
(this works in regex101: build, test, and debug regex)
but it's not working here, why is this?

As well as finding numeric strings with "-" I also need to find numeric strings from 1 - 999 does that mean running a second aRng.Find ?
Reply With Quote