Skip to content
Open
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
6 changes: 3 additions & 3 deletions aspnetcore/fundamentals/routing.md
Original file line number Diff line number Diff line change
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 explicitly provided value (not a default or 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