Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Need help with regex
04-19-2012, 10:22 PM #1
- Join Date
- Jun 2008
- New Jersey
- Thanked 259 Times in 256 Posts
Need help with regex
Hey guys, I could use some help with some regex.
I have a set of concatenated numbers as such:
What I want to do is match a number, such as 26. I can't split the number (its a regex in MySQL, but the logic is what I'm interested in, not the application), so I need to detect $number with either a dash or start of line preceding and a dash or end of line after.
I tried a few things so far, none of which have worked, along the lines of:
EDIT: Resolve... as soon as I posted this, I realize the question mark was the problem... dropped it and it works...