Skip Navigation LinksHome > Blog > 2008 > January > 01

January 01, 2008

How To: match using backreferences

Backreferencing uses named groups to allow you to search for other instances of characters that match a wildcard. Backreferences provide a convenient way to find repeating groups of characters. They can be thought of as a shorthand instruction to match the same string again.As the name implies, a regex backreference refers to a substring previously encountered in the target text. Backreferences are