asp.net.ph

Skip Navigation Links

Backreference Constructs

Regular Expressions Language Elements


The following table lists optional parameters that add backreference modifiers to a regular expression.

Backreference construct Definition
\number Backreference. For example, ( \w ) \1 finds doubled word characters.
\k<name> Named backreference. For example, ( ?<char>\w ) \k<char> finds doubled word characters. The expression ( ?<43>\w ) \43 does the same. You can use single quotes instead of angle brackets; for example, \k’char’.

Note the ambiguity between \number backreferences and octal codes. For more information, see Backreferences.

See Also

ASP.NET Page Syntax



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note