Regular Expression (Regex) is a method that is used to fuzzy-match similar patterns together instead of exact matching patterns. At Silent Push, our regex units are slightly different.
Use the following table of regex cheats to learn how to use regex for fuzzy-matching in Silent Push:
Normal Regex | Silent Push Regex | Operation | Example |
---|---|---|---|
* | {0, } | 0 or More | [a-z ]* becomes [a-z ] {0, } |
+ | {1, } | 1 or More | [a-z ]+ becomes [a-z ] {1, } |
? | (< term >l ) | Zero or One Occurrence | (www.) ?google.com becomes (www. |
\w | [a-zA-Z0-9 ] | Alphanumerical character set | \w becomes [ a-zA-Z0-9 ] |
\d | [0-9 ] | Numerical character set | \d becomes [ 0-9 ] |
\ . | . | Literal Dot | . (all) operator is ignored and does not need to be escaped. |
\ - | - | Literal Dash | - (range) operator is ignored and does not need to be escaped. |
^ | ^ | Start | ^ (start) operator is ignored and does not need to be escaped. |
$ | $ | End | $ (end) operator is ignored and does not need to be escaped. |
Examples
For practical examples of Silent Push regex, view the following table:
Normal Regex | Silent Push Regex | Example Match | Description |
---|---|---|---|
www.\w+.xyz | www.[a-zA-Z0-9]{1,}.xyz | www.malserver7.xyz | Find domains that begin with www (subdomain) and end in .xyz (Top Level Domain). The domain name must only contain alphanumerical characters. |
www.\d+.xy | www.[0-9]{1,}.xyz | www.3039129.xyz | Find domains that begin with www (subdomain) and end in .xyz (Top Level Domain). The domain name must only contain numerical characters. |
\d+.\w+ | [0-9]{1,}.[a-z0-9A-Z]{1,} | 393029.top or 302939.xyz | Find domains that contain only numerical characters. Allow for any top level domain. |
malserver.\w+ | malserver.[a-z0-9A-Z]{1,} | malserver.top or malserver.xyz | Find all top level domains that have a malserver as the start of the parent domain. |
google\d+.com | google[0-9]{1,}.com | google8.com | Find domains that are impersonating google.com by adding a single numerical value after the google keyword. |
\w+.\w+.ru | [a-zA-Z0-9]{1,}.[a-zA-Z0-9]{1,}.ru | a39c.xuedejclsy.ru | Find all alphanumerical subdomains of all alphanumerical parent domains. Where the top level domain (TLD) is.ru. Parent domains are NOT included in results. |
(\w+.)?\w+.ru | ([a-zA-Z0-9]{1,}.l)[a-zA-Z0-9]{1,}.ru | a39c.xuedejclsy.ru or xuedejclsy.ru | Find all alphanumerical subdomains of all alphanumerical parent domains. Where the top level domain (TLD) is.ru. Parent domains are included in results. |
\d+.server.top | [0-9] {1,}.server.top | 3399.server.top | Find all subdomains of server.top, where subdomain contains only numerical values. |
(\w+.)?server .top | ([a-z0-9A-Z]{1,}.l)server.top | 44dc.server.top or server.top | Find all subdomains of server.top that contain alphanumerical characters. Parent domain server.top is included in search. |