regexmatch.dev
Explore
Open main menu
Save & Share
Facebook
Twitter
Tumblr
E-Mail
Pinterest
LinkedIn
Reddit
Extract Dirty `href` Values in HTML
Published on Tue Mar 01 2022
Even though using a delimiter within a string, without escaping it, is an illegal character, sometimes this still happens and we need to extract a HTML value.
Regex
Test String
<a href="/2-In-1-Notebook/Lati-7400-2in1-Ci5-8GB-W10P-3Y-Basic/p/10270085" title="Dell, Lati 7400 2in1/Ci5/8GB/W10P/3Y Basic"> <a href="/2-In-1-Notebook/"U729X-12-5""-FHD-I7-8665U-16GB-SSD-512G/p/10257105"> <a href="/2-In-1-Notebook/"U729X-12-5""-FH D-I7-8665U-16GB-SSD-512G/p/10257105">
Additional matching regexes for
Extract Dirty `href` Values in HTML
Extract Dirty `href` Values in HTML
Even though using a delimiter within a string, without escaping it, is an illegal character, sometimes this still happens and we need to extract a HTML value.
extract node values from xml string
extract node values from xml string
Less number variables to dictionary
extract keys and values from .less variables
Trim
Trims a string without selecting any unnecessary text.
Extract All Steam Keys
Extract all Steam Keys from a Given String
Extract group of key from hash structure string
Extract group of key from hash structure string
Match quoted strings, ignoring escaped quotes
Matches single or double quoted strings, and ignores backslash-escaped quotes within the string.
sha512 - letters and numbers, without special characters. length 512
Just capital **letters and numbers**, **without special characters**. String length 512
testing for a bloke
Parsing html with regex is bad though.
Phone number tests
Test a given string for phone number variations and extract th parts.