[RESOLVED] [2005] Simple RegEx help
I seem to stink at regular expressions. All I want out of this is the number between LIC and the dash; in this example 1276. Would appreciate any help for this RegEx hack. :bigyello:
EDIT: My brain does not seem to be functioning this morning. Who knows why I was doing it the hard way. Disregard. :rolleyes:
Re: [RESOLVED] [2005] Simple RegEx help
What did you do to solve the problem?
Re: [RESOLVED] [2005] Simple RegEx help
I just split at the "-" and took a substring starting at the 3rd character of the first string from the split.
For some reason when I first though about it, I thought I would need to do something with RegEx. It was much easier to just do something that I already knew. :bigyello:
Re: [RESOLVED] [2005] Simple RegEx help
Just in case you change your mind and want to do it with regex :)
Code:
Dim pattern As String = "(?<=LIC)[0-9]*(?=-)"