I'm trying to use System.Text.RegularExpressions.Regex class to grab some text from a JSON string. The sting is something like
[{"name":"joe","message":"hello","sent":"datetime"}{"name":"steve","message":"bye","sent":"datetime"}]
I'm attempting to use the Matches() method to grab the "message" values. However, specifying a match as something like message":"*","sent as the pattern would return 3 matches:
hello
bye
hello","sent":"datetime"}{"name":"steve","message":"bye
How do I structure the options or modify my pattern to exclude recursive regex checks? I only want matches
hello
bye
*have been.*?