Regex Matches not working as excepted

Posted by Eibx on Stack Overflow See other posts from Stack Overflow or by Eibx
Published on 2010-03-23T20:59:23Z Indexed on 2010/03/23 21:03 UTC
Read the original article Hit count: 272

Filed under:
|

Hi StackOverflow,

I'm trying to group the following string into three groups.

0:0:Awesome:awesome

That being "0", "0" and "Awesome:awesome"

Using this regular expression:

^([0-9]+)\:([0-9]*)\:(.*)$

It works fine on online regex services: http://rubular.com/r/QePxt57EwU

But it seems like .NET doesn't agree. Picture of Regex problem from Visual Studio

© Stack Overflow or respective owner

Related posts about regex

Related posts about .NET