Help with a regex pattern please
I have three individual sPattern's that I am working on. How can I
merge them together so that the pattern will look for three digits followed by either a period, or by a space and a period, or by a space and a letter? Thanks Const sPattern As String = "d{1,3}(?=\.)" Const sPattern As String = "d{1,3}[\ ][\.]" Const sPattern As String = "d{1,3}[\ ][?=\A-Z,a-z]" Set oRegex = New RegExp oRegex.Pattern = sPattern oRegex.Global = True If oRegex.Test(strIn) = True Then Set colMatches = oRegex.Execute(strIn) strData = colMatches(0) End If |
Help with a regex pattern please
Thank you Dick. I'm very new to using Regex. You comments helped.
|
Help with a regex pattern please
|
All times are GMT +1. The time now is 12:59 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com