Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions aspnetcore/fundamentals/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ monikerRange: '>= aspnetcore-3.1'
content_well_notification: AI-contribution
ms.author: tdykstra
ms.custom: mvc
ms.date: 09/18/2024
ms.date: 03/17/2026
uid: fundamentals/routing
ai-usage: ai-assisted
---
Expand Down Expand Up @@ -520,9 +520,9 @@ The following table demonstrates the default route constraints and their expecte
| `range(min,max)` | `{age:range(18,120)}` | `91` | Integer value must be at least 18 but no more than 120 |
| `alpha` | `{name:alpha}` | `Rick` | String must consist of one or more alphabetical characters, `a`-`z` and case-insensitive |
| `regex(expression)` | `{ssn:regex(^\\d{{3}}-\\d{{2}}-\\d{{4}}$)}` | `123-45-6789` | String must match the regular expression. See tips about defining a regular expression |
| `required` | `{name:required}` | `Rick` | Used to enforce that a non-parameter value is present during URL generation |
| `file` | `{filename:file}` | `myfile.txt` | String can contain path segments, but its last segment must have a dot (`.`) and be followed by one or more non-dot characters |
| `nonfile` | `{page:nonfile}` | `PageName` | String must not have a dot in its last path segment that is followed by one or more non-dot (`.`) characters |
| `required` | `{name:required}` | `Rick` | Enforces that an explicit value (not an ambient value) is present during URL generation. |
| `file` | `{filename:file}` | `myfile.txt` | String can contain path segments, but its last segment must have a dot (`.`) and be followed by one or more non-dot characters |
| `nonfile` | `{page:nonfile}` | `PageName` | String must not have a dot in its last path segment that is followed by one or more non-dot (`.`) characters |

[!INCLUDE[](~/includes/regex.md)]

Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/fundamentals/routing/includes/routing3-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ The following table demonstrates example route constraints and their expected be
| `range(min,max)` | `{age:range(18,120)}` | `91` | Integer value must be at least 18 but no more than 120 |
| `alpha` | `{name:alpha}` | `Rick` | String must consist of one or more alphabetical characters, `a`-`z` and case-insensitive. |
| `regex(expression)` | `{ssn:regex(^\\d{{3}}-\\d{{2}}-\\d{{4}}$)}` | `123-45-6789` | String must match the regular expression. See tips about defining a regular expression. |
| `required` | `{name:required}` | `Rick` | Used to enforce that a non-parameter value is present during URL generation |
| `required` | `{name:required}` | `Rick` | Enforces that an explicit value (not an ambient value) is present during URL generation. |

[!INCLUDE[](~/includes/regex.md)]

Expand Down
Loading