mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-25 01:38:27 +02:00
Updated Request Matching (markdown)
@@ -393,7 +393,7 @@ Will match xml below:
|
|||||||
</todo-list>
|
</todo-list>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Regular Expression Matching
|
### Regular Expression Matching (RegexMatcher)
|
||||||
The RegexMatcher can be used to match using a regular expression.
|
The RegexMatcher can be used to match using a regular expression.
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
@@ -414,7 +414,7 @@ Hello World
|
|||||||
Hi WM
|
Hi WM
|
||||||
```
|
```
|
||||||
|
|
||||||
### Similarity Metric Matching
|
### Similarity Metric Matching (SimMetricsMatcher)
|
||||||
[SimMetrics.Net](https://github.com/StefH/SimMetrics.Net) is used as a Similarity Metric Library, e.g. from edit distance's (Levenshtein, Gotoh, Jaro etc) to other metrics, (e.g Soundex, Chapman).
|
[SimMetrics.Net](https://github.com/StefH/SimMetrics.Net) is used as a Similarity Metric Library, e.g. from edit distance's (Levenshtein, Gotoh, Jaro etc) to other metrics, (e.g Soundex, Chapman).
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
@@ -437,7 +437,7 @@ Hello
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### WildcardMatching
|
### WildcardMatching (WildcardMatch)
|
||||||
WildcardMatching is mostly used for Path and Url matching. This matcher allows a ? for a single character and * for any characters.
|
WildcardMatching is mostly used for Path and Url matching. This matcher allows a ? for a single character and * for any characters.
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
@@ -449,7 +449,7 @@ server
|
|||||||
|
|
||||||
```
|
```
|
||||||
// matching
|
// matching
|
||||||
Url like /somebody and /someting
|
Url like /somebody and /something
|
||||||
```
|
```
|
||||||
|
|
||||||
### Reversing the match behaviour with `MatchBehaviour.RejectOnMatch`
|
### Reversing the match behaviour with `MatchBehaviour.RejectOnMatch`
|
||||||
|
|||||||
Reference in New Issue
Block a user