I've been trying to capture a string that is between two commas. I created the following code:
Regex.Match(forReg, @"\,([^,]*)\,");
the forReg string will look like this
forReg = "123456,x,NULL"
Where x is an integer less than 999.
The first problem is I'm not sure how to use the string that I've captuered using Regex.Match and the second problem is I'm not even sure if I've done the Regex code correctly. I've looked up several threads with similar issues but can't seem to make any more progress.
",([^,]*),"would be just fine.