@technobuddha > library > RegExp
Constants
| Name | Type | Description |
|---|---|---|
| ansiEscapes | Constant | Regular expression that matches ANSI escape sequences, including OSC (Operating System Command) and CSI (Control Sequence Introducer) patterns. Useful for stripping or identifying ANSI codes in strings, such as those used for terminal text formatting. |
| domain | Constant | Regular expression for matching a domain name composed of a host and a top-level domain (TLD). |
| Constant | validate an valid email address | |
| ipV4 | Constant | validate an IPv4 address |
| ipV4Local | Constant | determine if Ipv4 address is local |
| isoDate | Constant | Validate a ISO formatted date |
| numeric | Constant | Validate a valid number |
| trimEquivalent | Constant | Regular expression that matches any whitespace character, including standard spaces, non-breaking spaces (\u00A0), and zero-width no-break spaces (\uFEFF). Useful for trimming or identifying whitespace-equivalent characters in strings. |