Regex pattern library
Tested starting points for common tasks. Open a page for explanations and samples, or regenerate in Forge from plain language.
- Email address regexWorking email address regex with live test samples. Generate email patterns from plain English with Forge Regex.
- URL / link regexRegex to match http/https URLs. Test live and generate variants from plain language.
- IPv4 address regexRegex for IPv4 addresses (0–255 octets). Generate and test with Forge Regex.
- ISO date (YYYY-MM-DD) regexMatch ISO-8601 calendar dates YYYY-MM-DD with a tested regular expression.
- US phone number regexRegular expression for US phone numbers with optional +1 and separators.
- HTML a[href] extractor regexRegex to extract href values from anchor tags, supporting single and double quotes.
- Strip HTML tags regexRemove HTML tags with a simple regex—useful for rough article cleanup after crawling.
- China mobile number regexRegex for mainland China mobile numbers (11 digits, optional +86).
- China ID card regexRegex for 18-digit mainland China resident ID numbers.
- HTML img src / data-src regexPull image URLs from HTML img tags including lazy-loaded data-src.
- HTML meta description regexRegex to pull meta name=description content from HTML. Test live and refine in Forge.
- Next-page / pagination link regexMatch pagination next links (rel=next or common next text) for crawlers.