There can be instances where identifying all the networks from a certain provider may be too complicated or numerous, and a regular expression may be more suitable to filter all networks from a certain AS. Regular expression can be used for this.
A quick guide to regular expression
Modifier | Purpose |
_ | Matches a space |
^ | Indicates the start of a string |
$ | Indicates the end of a string |
[] | Matches a single character with a range of characters |
– | Indicates a range of numbers in brackets |
[^] | Excludes the characters listed in the brackets |
() | Nesting of search patterns uses parentheses |
| | Acts as an OR logic to a query |
. | Matches a single character including space |
* | Matches zero or more characters, or pattern |
+ | Matches one or more instances of the character, or pattern |
? | Matches one or no instances of the character, or pattern |