views:

50

answers:

2

I'm looking to match this pattern:

 ((##.##.##))

Any series of Numbers/Decimals, surrounded by "((" and "))", and preceded by one whitespace

There can't be any characters in the middle except digits and periods.

Right now I have

"\s(\(){2}[\d\.]+(\)){2}"

but i'm not getting any matches...

+1  A: 
\s\(\([[.]|\d]+\)\)

seems to work. As a Java String that looks like this.

\\s\\(\\([[.]|\\d]+\\)\\)

You can test regular expressions online at various sites like http://www.regexplanet.com/simple/index.html.

Maybe it will work in VB too.. good luck.

Aaron
A: 

You don't have to escape the period inside [] braces. Try this:

\s\(\([.\d]+\)\)
Mike