Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |