Regular Expressions 101

Save & Share

  • Regex Version: ver. 3
  • Update Regex
    ctrl+⇧+s
  • Save new Regex
    ctrl+s
  • Add to Community Library

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression
No Match

/
/
gmi

Test String

Code Generator

Generated Code

// include the latest version of the regex crate in your Cargo.toml extern crate regex; use regex::Regex; fn main() { let regex = Regex::new(r#"(?mi)(<img[^>]*)(alt(=|:)(3D)?("|')("|'))?( )?((height|width)(=|:)(3D)?("|')1("|'))( )?((height|width)(=|:)(3D)?("|')1("|'))(( )?alt(=|:)(3D)?("|')("|'))?([^>]*>)"#).unwrap(); let string = "<img alt=3D\"\" height=3D\"auto\" src=3D\"https://www.dripuploads.com/uploads/image_upload/image/2913456/embeddable_2b940367-567e-4977-9161-eae7e62ebb95.png\" style=3D\"display: block; outline: none; text-decoration: none; height: auto; width: 100%; font-size: 16px; line-height: 100%; -ms-interpolation-mode: bicubic; border: 0;\" width=3D\"550\"></td></tr></tbody></table></td></tr></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table><!--[if mso | IE]><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:600px;\" width=3D\"600\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"background-color: #efefef; max-width: 600px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #efefef; width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#efefef\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0px;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" width=3D\"600px\" ><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:600px;\" width=3D\"600\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"max-width: 600px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" style=3D\"vertical-align:top;width:600px;\" ><![endif]--><div class=3D\"mj-column-per-100 mj-outlook-group-fix\" style=3D\"font-size: 0px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%;\" align=3D\"left\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"vertical-align: top; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0 6px;\" valign=3D\"top\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td align=3D\"center\" style=3D\"font-size: 0px; word-break: break-word; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0px 0%;\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"border-collapse: collapse; border-spacing: 0px; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" class=3D\"mj-full-width-mobile\"><tbody><tr><td style=3D\"width: 588px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" class=3D\"mj-full-width-mobile\"><img alt=3D\"\" height=3D\"auto\" src=3D\"https://www.dripuploads.com/uploads/image_upload/image/3222446/embeddable_fee3bd25-bebf-48e5-93d1-76b4f1304d5e.jpg\" style=3D\"display: block; outline: none; text-decoration: none; height: auto; width: 100%; font-size: 16px; line-height: 100%; -ms-interpolation-mode: bicubic; border: 0;\" width=3D\"588\"></td></tr></tbody></table></td></tr></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:600px;\" width=3D\"600\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"background-color: #efefef; max-width: 600px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #efefef; width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#efefef\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 7px 14px;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" width=3D\"600px\" ><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:572px;\" width=3D\"572\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"max-width: 572px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" style=3D\"vertical-align:top;width:572px;\" ><![endif]--><div class=3D\"mj-column-per-100 mj-outlook-group-fix\" style=3D\"font-size: 0px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%;\" align=3D\"left\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"vertical-align: top; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0 6px;\" valign=3D\"top\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td align=3D\"left\" style=3D\"font-size: 0px; word-break: break-word; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 10px 0;\"><div style=3D\"font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.2; text-align: left; color: #171717;\" align=3D\"left\"><div style=3D\"text-align: center;\" align=3D\"center\"><span style=3D\"font-weight: bold;\"><span style=3D\"font-size: 26px;\">En K=C3=86MPE nyhed=C2=A0=F0=9F=90=BC</span></span></div></div></td></tr><tr><td align=3D\"left\" style=3D\"font-size: 0px; word-break: break-word; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 9px 0;\"><div style=3D\"font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.2; text-align: left; color: #171717;\" align=3D\"left\"><p style=3D\"text-align: center; display: block; font-family: arial,helvetica,sans-serif; font-size: 14px; color: #000000; margin: 0;\" align=3D\"center\"><span style=3D\"font-weight: bold;\">K=C3=A6mpepandaen Lotus=C2=A0er klar til at flytte hjem hos dig. S=C3=A5 er sp=C3=B8rgsm=C3=A5let bare: Har du plads?</span></p></div></td></tr><tr><td align=3D\"left\" style=3D\"font-size: 0px; word-break: break-word; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 6px 0;\"><div style=3D\"font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.2; text-align: left; color: #171717;\" align=3D\"left\"><p style=3D\"text-align: center; display: block; font-family: arial,helvetica,sans-serif; font-size: 14px; color: #000000; margin: 0;\" align=3D\"center\"><span style=3D\"line-height: 1.5;\"><a data-utm-override=3D\"true\" href=3D\"https://t.dripemail2.com/c/eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkZXRvdXIiLCJpc3MiOiJtb25vbGl0aCIsInN1YiI6ImRldG91cl9saW5rIiwiaWF0IjoxNjkxNTcxMDY0LCJuYmYiOjE2OTE1NzEwNjQsImFjY291bnRfaWQiOiI1ODYwNTQ0IiwiZGVsaXZlcnlfaWQiOiJrazBxcWlwZzg1NWRpZ3l6eTc3aCIsInVybCI6Imh0dHBzOi8vc3ByaW5nY29wZW5oYWdlbi5jb20vcHJvZHVjdHMvbG90dXMtZnNjP3V0bV9zb3VyY2U9bnloZWRzYnJldiZ1dG1fbWVkaXVtPWVtYWlsJnV0bV9jYW1wYWlnbj1sb3R1c18yMDIzJl9fcz0xcTV0OXp3NmN3bjRrMGVxYnZqZyJ9.H5HCxEqNHKBozJA7SrHSGiGe4IWh0hKaQ_0CvOZgCvs\" style=3D\"color: #1A8DC6; text-decoration: underline;\"><span style=3D\"color: #0000CD;\">Jeg har plads til Lotus</span></a></span><br><br>De fleste ved, hvordan en panda ser ud.<br><br>Nu kan du finde ud af, hvordan den ser ud hjemme hos dig.=C2=A0=F0=9F=90=BC=F0=9F=8F=A0<br><br>Invit=C3=A9r k=C3=A6mpepandaen Lotus inden for dit hjems fire v=C3=A6gge og nyd det smukke design i din hverdag.<br>=C2=A0</p><p style=3D\"text-align: center; display: block; font-family: arial,helvetica,sans-serif; font-size: 14px; color: #000000; margin: 0;\" align=3D\"center\"><span style=3D\"line-height: 1.5;\"><a data-utm-override=3D\"true\" href=3D\"https://t.dripemail2.com/c/eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkZXRvdXIiLCJpc3MiOiJtb25vbGl0aCIsInN1YiI6ImRldG91cl9saW5rIiwiaWF0IjoxNjkxNTcxMDY0LCJuYmYiOjE2OTE1NzEwNjQsImFjY291bnRfaWQiOiI1ODYwNTQ0IiwiZGVsaXZlcnlfaWQiOiJrazBxcWlwZzg1NWRpZ3l6eTc3aCIsInVybCI6Imh0dHBzOi8vc3ByaW5nY29wZW5oYWdlbi5jb20vcHJvZHVjdHMvbG90dXMtZnNjP3V0bV9zb3VyY2U9bnloZWRzYnJldiZ1dG1fbWVkaXVtPWVtYWlsJnV0bV9jYW1wYWlnbj1sb3R1c18yMDIzJl9fcz0xcTV0OXp3NmN3bjRrMGVxYnZqZyJ9.H5HCxEqNHKBozJA7SrHSGiGe4IWh0hKaQ_0CvOZgCvs\" style=3D\"color: #1A8DC6; text-decoration: underline;\"><span style=3D\"color: #0000CD;\">F=C3=A5 bes=C3=B8g fra bambusskovene</span></a></span></p></div></td></tr></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:600px;\" width=3D\"600\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"background-color: #efefef; max-width: 600px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #efefef; width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#efefef\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 11px 0px;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" width=3D\"600px\" ><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:600px;\" width=3D\"600\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"max-width: 600px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" style=3D\"vertical-align:top;width:600px;\" ><![endif]--><div class=3D\"mj-column-per-100 mj-outlook-group-fix\" style=3D\"font-size: 0px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%;\" align=3D\"left\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"vertical-align: top; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0 6px;\" valign=3D\"top\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td align=3D\"left\" style=3D\"font-size: 0px; word-break: break-word; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0px 0;\"><div style=3D\"font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.2; text-align: left; color: #171717;\" align=3D\"left\"><h2 style=3D\"text-align: center; font-weight: unset; font-family: arial,helvetica,sans-serif; font-size: 18px; color: #000000; margin: 0;\" align=3D\"center\"><span style=3D\"font-weight: bold;\">F=C3=B8lg os p=C3=A5 vores sociale medier</span></h2></div></td></tr><tr><td align=3D\"center\" style=3D\"font-size: 0px; word-break: break-word; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 12px 0px;\"><!--[if mso | IE]><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" ><tr><td><![endif]--><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"float: none; display: inline-table; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 12px;\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #3B5998; border-radius: 4px; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#3B5998\"><tr><td style=3D\"font-size: 0; height: 24px; vertical-align: middle; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" valign=3D\"middle\"><a href=3D\"https://t.dripemail2.com/c/eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkZXRvdXIiLCJpc3MiOiJtb25vbGl0aCIsInN1YiI6ImRldG91cl9saW5rIiwiaWF0IjoxNjkxNTcxMDY0LCJuYmYiOjE2OTE1NzEwNjQsImFjY291bnRfaWQiOiI1ODYwNTQ0IiwiZGVsaXZlcnlfaWQiOiJrazBxcWlwZzg1NWRpZ3l6eTc3aCIsInVybCI6Imh0dHBzOi8vZmFjZWJvb2suY29tL3NwcmluZ2NvcGVuaGFnZW4_X19zPTFxNXQ5enc2Y3duNGswZXFidmpnJnV0bV9zb3VyY2U9ZHJpcCZ1dG1fbWVkaXVtPWVtYWlsJnV0bV9jYW1wYWlnbj1NJUMzJUI4ZCtlbitudXR0ZXQrbnloZWQrJUUyJTgwJTkzK3NvcnQrcCVDMyVBNStodmlkdCVDMiVBMCVGMCU5RiU5MCVCQyJ9.8K1BxtOPNhZunB2EmM0bZEZZXMnNKzXnhAy82izl4VM\" target=3D\"_blank\" style=3D\"color: #1A8DC6; text-decoration: underline;\"><img height=3D\"24\" src=3D\"https://www.mailjet.com/images/theme/v1/icons/ico-social/facebook.png\" style=3D\"border-radius: 4px; display: block; height: auto; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; border: 0;\" width=3D\"24\"></a></td></tr></table></td></tr></table><!--[if mso | IE]></td><td><![endif]--><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"float: none; display: inline-table; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 12px;\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #3F729A; border-radius: 4px; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#3F729A\"><tr><td style=3D\"font-size: 0; height: 24px; vertical-align: middle; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" valign=3D\"middle\"><a href=3D\"https://t.dripemail2.com/c/eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkZXRvdXIiLCJpc3MiOiJtb25vbGl0aCIsInN1YiI6ImRldG91cl9saW5rIiwiaWF0IjoxNjkxNTcxMDY0LCJuYmYiOjE2OTE1NzEwNjQsImFjY291bnRfaWQiOiI1ODYwNTQ0IiwiZGVsaXZlcnlfaWQiOiJrazBxcWlwZzg1NWRpZ3l6eTc3aCIsInVybCI6Imh0dHBzOi8vd3d3Lmluc3RhZ3JhbS5jb20vc3ByaW5nY29wZW5oYWdlbi8_X19zPTFxNXQ5enc2Y3duNGswZXFidmpnJnV0bV9zb3VyY2U9ZHJpcCZ1dG1fbWVkaXVtPWVtYWlsJnV0bV9jYW1wYWlnbj1NJUMzJUI4ZCtlbitudXR0ZXQrbnloZWQrJUUyJTgwJTkzK3NvcnQrcCVDMyVBNStodmlkdCVDMiVBMCVGMCU5RiU5MCVCQyJ9.aCLEo6M_-Yba8OYNv57aha8yrJqJ1m4vJeftKw9gJcw\" target=3D\"_blank\" style=3D\"color: #1A8DC6; text-decoration: underline;\"><img height=3D\"24\" src=3D\"https://www.mailjet.com/images/theme/v1/icons/ico-social/instagram.png\" style=3D\"border-radius: 4px; display: block; height: auto; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; border: 0;\" width=3D\"24\"></a></td></tr></table></td></tr></table><!--[if mso | IE]></td><td><![endif]--><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"float: none; display: inline-table; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 12px;\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #bb0000; border-radius: 4px; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#bb0000\"><tr><td style=3D\"font-size: 0; height: 24px; vertical-align: middle; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" valign=3D\"middle\"><a href=3D\"https://t.dripemail2.com/c/eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkZXRvdXIiLCJpc3MiOiJtb25vbGl0aCIsInN1YiI6ImRldG91cl9saW5rIiwiaWF0IjoxNjkxNTcxMDY0LCJuYmYiOjE2OTE1NzEwNjQsImFjY291bnRfaWQiOiI1ODYwNTQ0IiwiZGVsaXZlcnlfaWQiOiJrazBxcWlwZzg1NWRpZ3l6eTc3aCIsInVybCI6Imh0dHBzOi8vd3d3LnlvdXR1YmUuY29tL2NoYW5uZWwvVUNXNktGWGZtcFAyT21udUNEbWFUc3JRP19fcz0xcTV0OXp3NmN3bjRrMGVxYnZqZyZ1dG1fc291cmNlPWRyaXAmdXRtX21lZGl1bT1lbWFpbCZ1dG1fY2FtcGFpZ249TSVDMyVCOGQrZW4rbnV0dGV0K255aGVkKyVFMiU4MCU5Mytzb3J0K3AlQzMlQTUraHZpZHQlQzIlQTAlRjAlOUYlOTAlQkMifQ.cKNGg_JQiBhQS-v-VE3hFjIwMUhRAUrwmXHourRUjf8\" target=3D\"_blank\" style=3D\"color: #1A8DC6; text-decoration: underline;\"><img height=3D\"24\" src=3D\"https://www.mailjet.com/images/theme/v1/icons/ico-social/youtube.png\" style=3D\"border-radius: 4px; display: block; height: auto; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; border: 0;\" width=3D\"24\"></a></td></tr></table></td></tr></table><!--[if mso | IE]></td><td><![endif]--><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"float: none; display: inline-table; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 12px;\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #007bb5; border-radius: 4px; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#007bb5\"><tr><td style=3D\"font-size: 0; height: 24px; vertical-align: middle; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" valign=3D\"middle\"><a href=3D\"https://t.dripemail2.com/c/eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkZXRvdXIiLCJpc3MiOiJtb25vbGl0aCIsInN1YiI6ImRldG91cl9saW5rIiwiaWF0IjoxNjkxNTcxMDY0LCJuYmYiOjE2OTE1NzEwNjQsImFjY291bnRfaWQiOiI1ODYwNTQ0IiwiZGVsaXZlcnlfaWQiOiJrazBxcWlwZzg1NWRpZ3l6eTc3aCIsInVybCI6Imh0dHBzOi8vd3d3LmxpbmtlZGluLmNvbS9jb21wYW55L3NwcmluZ2NwaC8_X19zPTFxNXQ5enc2Y3duNGswZXFidmpnJnV0bV9zb3VyY2U9ZHJpcCZ1dG1fbWVkaXVtPWVtYWlsJnV0bV9jYW1wYWlnbj1NJUMzJUI4ZCtlbitudXR0ZXQrbnloZWQrJUUyJTgwJTkzK3NvcnQrcCVDMyVBNStodmlkdCVDMiVBMCVGMCU5RiU5MCVCQyJ9.xLNl9aTm_qm2rAHDKNcyMdtPPwesHypjP4_q9x_Fc3w\" target=3D\"_blank\" style=3D\"color: #1A8DC6; text-decoration: underline;\"><img height=3D\"24\" src=3D\"https://www.mailjet.com/images/theme/v1/icons/ico-social/linkedin.png\" style=3D\"border-radius: 4px; display: block; height: auto; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; border: 0;\" width=3D\"24\"></a></td></tr></table></td></tr></table><!--[if mso | IE]></td><td><![endif]--><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"float: none; display: inline-table; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 12px;\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #cb2027; border-radius: 4px; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#cb2027\"><tr><td style=3D\"font-size: 0; height: 24px; vertical-align: middle; width: 24px; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" valign=3D\"middle\"><a href=3D\"https://t.dripemail2.com/c/eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkZXRvdXIiLCJpc3MiOiJtb25vbGl0aCIsInN1YiI6ImRldG91cl9saW5rIiwiaWF0IjoxNjkxNTcxMDY0LCJuYmYiOjE2OTE1NzEwNjQsImFjY291bnRfaWQiOiI1ODYwNTQ0IiwiZGVsaXZlcnlfaWQiOiJrazBxcWlwZzg1NWRpZ3l6eTc3aCIsInVybCI6Imh0dHBzOi8vd3d3LnBpbnRlcmVzdC5jb20vc3ByaW5nY29wZW5oYWdlbi8_X19zPTFxNXQ5enc2Y3duNGswZXFidmpnJnV0bV9zb3VyY2U9ZHJpcCZ1dG1fbWVkaXVtPWVtYWlsJnV0bV9jYW1wYWlnbj1NJUMzJUI4ZCtlbitudXR0ZXQrbnloZWQrJUUyJTgwJTkzK3NvcnQrcCVDMyVBNStodmlkdCVDMiVBMCVGMCU5RiU5MCVCQyJ9.GsmLlJ5fnZnlR6fFpDNVDTF1jcKFIlE3ZcmCD3N6tNM\" target=3D\"_blank\" style=3D\"color: #1A8DC6; text-decoration: underline;\"><img height=3D\"24\" src=3D\"https://www.mailjet.com/images/theme/v1/icons/ico-social/pinterest.png\" style=3D\"border-radius: 4px; display: block; height: auto; line-height: 100%; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; border: 0;\" width=3D\"24\"></a></td></tr></table></td></tr></table><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:600px;\" width=3D\"600\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"background-color: #efefef; max-width: 600px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #efefef; width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#efefef\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 8px 44px;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" width=3D\"600px\" ><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:512px;\" width=3D\"512\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"max-width: 512px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" style=3D\"vertical-align:top;width:512px;\" ><![endif]--><div class=3D\"mj-column-per-100 mj-outlook-group-fix\" style=3D\"font-size: 0px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%;\" align=3D\"left\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"vertical-align: top; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0 6px;\" valign=3D\"top\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td align=3D\"left\" style=3D\"font-size: 0px; word-break: break-word; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 4px 0;\"><div style=3D\"font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.2; text-align: left; color: #171717;\" align=3D\"left\"><h3 style=3D\"text-align: center; font-weight: unset; font-family: arial,helvetica,sans-serif; font-size: 16px; color: #000000; margin: 0;\" align=3D\"center\"><span style=3D\"color: #6a6a6a;\"><span style=3D\"line-height: 1.5;\">INSPIRE TO BETTER EVERYDAY LIVING</span></span></h3></div></td></tr></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"background-color: #f7f7f7; width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\" bgcolor=3D\"#f7f7f7\"><tbody><tr><td style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><!--[if mso | IE]><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:600px;\" width=3D\"600\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"max-width: 600px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0px 70px;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" width=3D\"600px\" ><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" class=3D\"\" style=3D\"width:460px;\" width=3D\"460\" ><tr><td style=3D\"line-height:0px;font-size:0px;mso-line-height-rule:exactly;\"><![endif]--><div style=3D\"max-width: 460px; margin: 0px auto;\"><table align=3D\"center\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" style=3D\"width: 100%; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"direction: ltr; font-size: 0px; text-align: center; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0;\" align=3D\"center\"><!--[if mso | IE]><table role=3D\"presentation\" border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\"><tr><td class=3D\"\" style=3D\"vertical-align:top;width:460px;\" ><![endif]--><div class=3D\"mj-column-per-100 mj-outlook-group-fix\" style=3D\"font-size: 0px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%;\" align=3D\"left\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tbody><tr><td style=3D\"vertical-align: top; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 0 10px;\" valign=3D\"top\"><table border=3D\"0\" cellpadding=3D\"0\" cellspacing=3D\"0\" role=3D\"presentation\" width=3D\"100%\" style=3D\"border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\"><tr><td align=3D\"left\" style=3D\"font-size: 0px; word-break: break-word; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 12px 0;\"><div style=3D\"font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.2; text-align: left; color: #171717;\" align=3D\"left\"><p style=3D\"text-align: center; display: block; font-family: arial,helvetica,sans-serif; font-size: 14px; color: #000000; margin: 0;\" align=3D\"center\"><br><br><span style=3D\"color: #808080;\"><span style=3D\"line-height: 1;\"><span style=3D\"font-size: 12px;\">To make sure you keep getting these emails, please add=C2=A0</span></span></span><span style=3D\"color: #808080;\"><span style=3D\"line-height: 1;\"><span style=3D\"font-size: 12px;\">ckl@springcopenhagen.com to your address book or allow list. Want out of the loop? <a href=3D\"https://t.dripemail2.com/c/eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkZXRvdXIiLCJpc3MiOiJtb25vbGl0aCIsInN1YiI6ImRldG91cl9saW5rIiwiaWF0IjoxNjkxNTcxMDY0LCJuYmYiOjE2OTE1NzEwNjQsImFjY291bnRfaWQiOiI1ODYwNTQ0IiwiZGVsaXZlcnlfaWQiOiJrazBxcWlwZzg1NWRpZ3l6eTc3aCIsInVybCI6Imh0dHBzOi8vd3d3LmdldGRyaXAuY29tL3N1YnNjcmliZXJzLzFxNXQ5enc2Y3duNGswZXFidmpnL3N1YnNjcmlwdGlvbnM_ZD1razBxcWlwZzg1NWRpZ3l6eTc3aCZleGNsdWRlX2NsaWNrPTEmaW50ZW50PXVuc3Vic2NyaWJlJl9fcz0xcTV0OXp3NmN3bjRrMGVxYnZqZyZ1dG1fc291cmNlPWRyaXAmdXRtX21lZGl1bT1lbWFpbCZ1dG1fY2FtcGFpZ249TSVDMyVCOGQrZW4rbnV0dGV0K255aGVkKyVFMiU4MCU5Mytzb3J0K3AlQzMlQTUraHZpZHQlQzIlQTAlRjAlOUYlOTAlQkMifQ.I4C7ugmbR2vUpZ7ecVZFb9gApQzOmUuuDIpHwp_Qkyo\" style=3D\"color: #1A8DC6; text-decoration: underline;\">Unsubscribe</a>.<br><br>28 Herluf Trolles Gade, K=C3=B8benhavn, 1052</span></span></span></p></div></td></tr></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><img src=3D\"http://o.dripemail2.com/wf/open?upn=3DcygBzLwPb24OITQo8SvRKeAXRfJ9HckU18wewbNnNNZ2tf59rOkUQt5drgeo31NwrSQodDWYGP-2B-2F-2FnASGIMy2yL-2Ftp5nm8-2Bv7tLnISdoJi7h-2BXpECnp-2F8-2BbmBRQqoc78HxZ8nnYgdHHUIcZN4JK0ni21Qq7OYRP7y1FrG-2B1Y0YU7kzYrgeJtyHHgXj2K3REfXvNblAcQ4FiA5TldLzpx9TiZ9MwSNnllKY3QIyfZ7m0ohxSoIXRGJOhjXSB5tCWudU6Kac-2Bvj47Ou78K6dBOwFqBSVB9oTCrYqaDYKlamIFXjiCmc1JY8IbSCEyH7HMvruIuSz-2BhFJ-2B4JuDlr8HUMpKXBzfFwkIhw65f56pegGjlORQLvu56BYYTZ9-2BEs5E7pWIGthhGCHw8oBVG-2F9u8P9SqQuaXd2hBmAnYkngW1U3akS1vz-2Fvs-2BKvFd-2BZrLB94MpQ2Fo8IBSSdJe-2F8vsNtorXfPWg-2FBrs0E-2BQR1nY-2BfZSbX4M5QmvH2j0jyrPYAJmth6XgnYV2VWZchxvYE6lsjvDOX5OuEbepTgRu7vlPt5OghgJTOaoYQTPJN-2F0XGgafEroT-2BJX7-2F3VQW4UUENRKr8EKfg02Vxg3bLejcSoPK-2F-2BrP8csOq8eHUdd5xjj4czemlanCWeO2wAGhl0YLznZMGNqFKJZPlPP0RLzrMgW4wyjFdMZ8RYLxgXSIqUdw59mCLMqYnw77-2F2gUm5oXZSANO60cuSGe9tAmaQ1A29FsI-2Fsm-2FuKua5nsR6czCl5xBb8VaT3CW-2FUKSeCDdP4Y3lB-2Fg-3D-3D\" alt=3D\"\" width=3D\"1\" height=3D\"1\" border=3D\"0\" style=3D\"height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;\"/>"; // result will be an iterator over tuples containing the start and end indices for each match in the string let result = regex.captures_iter(string); for mat in result { println!("{:?}", mat); } }

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Rust, please visit: https://docs.rs/regex/latest/regex/