Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with a regex pattern please
Thank you Dick. I'm very new to using Regex. You comments helped.
|
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help with a regex pattern please
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help with a Regex Pattern | Excel Programming | |||
Regex techniques | Excel Programming | |||
RegEx to parse something like this... | Excel Programming | |||
RegEx in VBE code editor | Excel Programming | |||
Regex Question | Excel Programming |