On a single line Regex if I want to capture all till the end of line.. Which of these will be better in terms of Performance?
Regex r = new Regex(".+");
OR
Regex r = new Regex("[^$]+$");
I haven't included the entire regex but I hope you get the idea.
Are there any trade-offs or they both behave the same way?
Thanks!