\*
## 4. Regex
Proxyman also supports Regex.
* Make sure your regex is **matching a whole URL**.
* **Partial Matching** is considered as not matching.
* Make sure you **escape characters** properly: Splash (/), full-stop (.), etc.
For instance:
| Regex | Matched URL Examples |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| https:\\/\\/proxyman\\.io.\* |
|
| ^(http\|https):\\/\\/www\\.google\\.com.\* |
|
| ^(http\|https)?:\\/\\/www\\.google\\.com\\/v\[0-9]?\\/build\\?query=proxyman |
[www.google.com/v2/build?query=proxyman](http://www.google.com/v2/build?query=proxyman)
|
You can use to verify your Regex that matches the whole text.

{% hint style="info" %}
Please check the [**Regex** **Metacharacters, Operator and Flag**](https://developer.apple.com/documentation/foundation/nsregularexpression#1965590) from Apple Developer Documents to know which one is supported.
{% endhint %}
{% hint style="info" %}
Check and make sure your Regex is full-matching with the given URL
{% endhint %}
* Select Regex when creating rules

{% hint style="info" %}
With regular expressions the meaning of `?` and `*` is different from that of wildcards. The equivalent of wildcard `?` is the regex `.` and the equivalent of wildcard `*` is the regex `.*`
{% endhint %}