Difference in capturing groups between Java and C#

In Java I have written string for the replacement in regex like that:
$123
and expecting result would be:
some_captured_string23

In .NET it is not working.
We have to add brackets around group number:
${1}23

Advertisements

0 Responses to “Difference in capturing groups between Java and C#”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: