What is $1 in regex replace?

The $ number language element includes the last substring matched by the number capturing group in the replacement string, where number is the index of the capturing group. For example, the replacement pattern $1 indicates that the matched substring is to be replaced by the first captured group .

Sizin İçin Seçtik  How does regex pattern work?

Leave a Reply

Your email address will not be published. Required fields are marked *