I am having a string like: "abc xyz: ID# 1000123, this is test, test 1, test 1234, "
I need to write a regular expression to extract the ID 1000123.
I have tried some thing like:
Regex betweenOfRegexCompiled = new Regex("ID# (.*), ", RegexOptions.Compiled);
But it gives "1000123, this is test, test 1, test 1234".
So, how to specify the first occurrence of the ", " ?
"ID# (.*), "to"ID# (.*?), ".