Regular Expressions 101

Save & Share

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

/
/
g

Test String

Code Generator

Generated Code

$re = '/(href=.*?span\>)/'; $str = '{ subject: "kyles api injection test", folderid: "2161", replyToEmail: "na.marketing@gettyimages.com", senderEmail: "info@e.gett", senderName: "Getty Image", emailHeaderId: "1", replyToName: "Getty Images", htmlContent: { type: "RawHtmlContent", html: "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta content="yes" target="_blank" name="apple-touch-fullscreen"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="initial-scale=1, maximum-scale=1"> <title>Discover our latest and most popular content | Getty Images</title> <style type="text/css"> div, p, a, li, td {-webkit-text-size-adjust:none;-ms-text-size-adjust:none;} body {margin:0;padding:0;} table td {border-collapse:collapse;} .ExternalClass {width:100%;} .ExternalClass * {line-height: 100%} * a{ color: inherit; text-decoration:none; } img { -ms-interpolation-mode: bicubic; } @media only screen and (min-device-width: 320px) and (max-device-width: 1024px) { a[href^="tel"], a[href^="sms"], a { color: inherit !important; cursor: default !important; text-decoration:none;} } @media screen and (max-device-width: 480px), screen and (max-width: 480px) { *[class=wrapto100pc]{width:100% !important; height:auto !important;} *[class=wrapto320px]{width:320px !important; height:auto !important;} *[class=heroimg]{width:130px !important; height:auto !important;} *[class=headingfont]{font-size:22px !important; line-height:28px !important;} *[class=mobtext]{font-size:14px !important;} *[class=aligncenter]{text-align:center !important;} *[class=clearheight]{height:auto !important;} *[class=nomob]{display:none !important;} *[class=colsplit]{width:100%!important; float:left!important;} *[class=topcolumn]{ display: table-header-group!important;width:100%!important;} *[class=bottomcolumn]{display: table-footer-group!important;width:100%!important;} *[class=ctabutton]{height:44px !important;width:100% !important;} *[class=footerlinkcell]{width:100%!important; float:left!important; padding-bottom:10px !important; padding-top:10px !important; border-bottom: 1px solid #5d5d5d !important; background-image:url(\'http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{fc5247c5-7c6e-48b9-a682-11f36b95dd15}_footerlinks_bg.gif\') !important; background-repeat:no-repeat !important;} *[class=footerlinks]{font-size:14px !important; text-decoration:none !important; padding-left:35px !important;color:#b4b4b4 !important;} *[class=footertext]{font-size:14px !important;color:#b4b4b4 !important;} span[class=headertext]{font-size:14px !important;} *[class=colsplitissue]{width:100%!important; float:left!important; font-size:14px !important;} } </style> <!--[if gte mso 15]> <style type="text/css" media="all"> tr { font-size:1px; mso-line-height-alt:0; mso-margin-top-alt:1px; } </style> <![endif]--> </head> <body bgcolor="#e9e9e9" margintop="0" marginleft="0" marginright="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#e9e9e9"> <tr> <td align="center" valign="top"> <!-- Preheader --> <table width="600" border="0" cellpadding="0" cellspacing="0" class="nomob"> <tr> <td align="left" valign="top" style="font-family:Verdana, sans-serif; font-size:10px; line-height:12px; color:#e9e9e9;"> See our curated imagery collections<br> </td> </tr> </table> <!-- end Preheader --> <!-- Logo Header --> <table width="640" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" class="wrapto100pc"> <tr> <td bgcolor="#000000"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="8" border="0" style="display:block"></td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> <tr> <td class="nomob"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> <tr> <td align="left" valign="top"> <table width="640" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" class="wrapto100pc"> <tr> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> <td align="left" valign="top"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29717&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Logo link"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{cb0075a6-056c-4b61-a755-8b1bb5641982}_logo_getty_181x34.gif" alt="Getty Images" title="Getty Images" width="181" height="31" class="heroimg" border="0" style="display:block"></a> </td> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> </tr> </table> </td> </tr> <tr> <td class="nomob"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> </table> <!-- end Logo Header --> <table border="0" align="center" cellpadding="0" cellspacing="0" class="nomob"> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> <!-- Main Article --> <table width="640" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" class="wrapto100pc"> <tr> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> <td align="left" valign="top"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> <tr> <td align="left" valign="top"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29718&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Image link"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{ae2f98f6-222e-41b5-bae8-e99c06451d2f}_main_144315021_1200x680_na.jpg" width="600" height="340" border="0" alt="Search what\'s hot" title="Search what\'s hot" class="wrapto100pc" style="display:block"></a> </td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> <tr> <td align="left" valign="top" style="font-family:Verdana, sans-serif; font-size:13px; line-height:20px; color:#555555;" class="mobtext"> Hello <span class="eloquaemail">First_Name1</span>,<br> <br> We\'ve got industry leading insight into what makes powerful visual storytelling. And, we have the digital content from leading photographers and art directors to support it. View some inspiring visuals or <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29717&elq=<span class=eloquaemail>recipientid</span>" name="Copy link" target="_blank" style="text-decoration:none; color:#0099ff;">start your own search</a>.<br> </td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#ffcc00" class="ctabutton"> <tr> <td width="10"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="10" height="33" border="0" style="display:block"></td> <td align="left" valign="middle" style="font-family:Verdana, sans-serif; font-size:17px; line-height:20px; font-weight:bold; color:#ffffff;" class="aligncenter" nowrap="nowrap"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29718&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="CTA link" style="color:#ffffff; text-decoration:none">View popular categories</a> </td> <td width="10"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="10" height="33" border="0" style="display:block"></td> </tr> </table> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> </td> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> </tr> </table> <!-- end Main Article --> <table border="0" align="center" cellpadding="0" cellspacing="0" class="nomob"> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> <!-- Triple Articles --> <table width="640" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff" class="wrapto100pc"> <tr> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> <td align="left" valign="top"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="5" style="font-family:Verdana, sans-serif; font-size:17px; line-height:24px; color:#000000; font-weight:bold"> Check out innovative imagery from our curated collections.<br> </td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> <tr> <td width="180" align="left" valign="top" class="colsplit"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" valign="top"><a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29719&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Image link"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{58558dff-5c0e-4e12-8783-98335b3ed27e}_story_164837400_560x320.jpg" width="180" height="103" border="0" alt="#164837400 Thomas Barwick/Stone" title="#164837400 Thomas Barwick/Stone" class="wrapto100pc" style="display:block;"></a></td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> <tr> <td style="font-family:Verdana, sans-serif; font-size:17px; line-height:24px; color:#000000; font-weight:bold"> Lean In<br> </td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> <tr> <td align="left" valign="top" style="font-family:Verdana, sans-serif; font-size:13px; line-height:20px; color:#555555;" class="mobtext">Groundbreaking imagery of women\'s rise in the workplace.</td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> <tr> <td style="font-family:Verdana, sans-serif; font-size:13px; line-height:18px; color:#000001; font-weight:bold"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29719&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="CTA link" style="color:#000001; text-decoration:none;"><span class="headertext">View the collection »</span></a><br> </td> </tr> </table> </td> <td class="colsplit"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="15" height="40" border="0" style="display:block"></td> <td width="180" align="left" valign="top" class="colsplit"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" valign="top"><a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29720&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Image link"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{52974b62-5018-4ad5-8411-fe42a852698a}_story_169496436_560x320.jpg" width="180" height="103" border="0" alt="#169496436 Dougal Waters/Taxi" title="#169496436 Dougal Waters/Taxi" class="wrapto100pc" style="display:block;"></a></td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> <tr> <td style="font-family:Verdana, sans-serif; font-size:17px; line-height:24px; color:#000000; font-weight:bold">Taxi</td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> <tr> <td align="left" valign="top" style="font-family:Verdana, sans-serif; font-size:13px; line-height:20px; color:#555555;" class="mobtext">Premium quality lifestyle content with a regional flare.</td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> <tr> <td style="font-family:Verdana, sans-serif; font-size:13px; line-height:18px; color:#000001; font-weight:bold"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29720&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="CTA link" style="color:#000001; text-decoration:none;"><span class="headertext">View the collection »</span></a><br> </td> </tr> </table> </td> <td class="colsplit"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="15" height="40" border="0" style="display:block"></td> <td width="180" align="left" valign="top" class="colsplit"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" valign="top"><a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29721&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Image link"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{e6006d61-6b4e-4303-971b-9933e56d4f77}_story_171636821_560x320.jpg" width="180" height="103" border="0" alt="#171636821 Mayte Torres/Moment Select" class="wrapto100pc" style="display:block;"></a></td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> <tr> <td style="font-family:Verdana, sans-serif; font-size:17px; line-height:24px; color:#000000; font-weight:bold">Moment</td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> <tr> <td height="61" align="left" valign="top" class="mobtext" style="font-family:Verdana, sans-serif; font-size:13px; line-height:20px; color:#555555;">Authentic life moments captured by the global community.</td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="10" border="0" style="display:block"></td> </tr> <tr> <td style="font-family:Verdana, sans-serif; font-size:13px; line-height:18px; color:#000001; font-weight:bold"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29721&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="CTA link" style="color:#000001; text-decoration:none;"><span class="headertext">View the collection »</span></a><br> </td> </tr> </table> </td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> </td> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> </tr> </table> <!-- end Triple Articles --> <table border="0" align="center" cellpadding="0" cellspacing="0" class="nomob"> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> <!-- Footer --> <table width="640" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#000000" class="wrapto100pc"> <tr> <td align="left" valign="top"> <table border="0" cellspacing="0" cellpadding="0" class="nomob"> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="middle" class="colsplit"> <table class="wrapto100pc" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20" class="nomob"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> <td align="left" valign="middle" style="font-family:Verdana, sans-serif; font-size:12px; line-height:16px; color:#ffffff;" class="footerlinkcell"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29722&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Footer links" style="text-decoration:underline; color:#ffffff;" class="footerlinks">Creative images</a><br> </td> <td width="15" align="center" valign="middle" class="nomob"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{c32f8d87-d662-464a-8cbd-005c1ad25d9d}_footer_div_15x20.gif" width="15" height="20" border="0" style="display:block"></td> <td align="left" valign="middle" style="font-family:Verdana, sans-serif; font-size:12px; line-height:16px; color:#ffffff;" class="footerlinkcell"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29723&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Footer links" style="text-decoration:underline; color:#ffffff;" class="footerlinks">Editorial photos</a><br> </td> <td align="center" valign="middle" class="nomob"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{c32f8d87-d662-464a-8cbd-005c1ad25d9d}_footer_div_15x20.gif" width="15" height="20" border="0" style="display:block"></td> <td align="left" valign="middle" style="font-family:Verdana, sans-serif; font-size:12px; line-height:16px; color:#ffffff;" class="footerlinkcell"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29724&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Footer links" style="text-decoration:underline; color:#ffffff;" class="footerlinks">Video</a><br> </td> <td align="center" valign="middle" class="nomob"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{c32f8d87-d662-464a-8cbd-005c1ad25d9d}_footer_div_15x20.gif" width="15" height="20" border="0" style="display:block"></td> <td align="left" valign="middle" style="font-family:Verdana, sans-serif; font-size:12px; line-height:16px; color:#ffffff;" class="footerlinkcell"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29725&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Footer links" style="text-decoration:underline; color:#ffffff;" class="footerlinks">Music</a><br> </td> </tr> </table> </td> <td width="10" class="colsplit"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="10" height="10" border="0" style="display:block"></td> <td align="right" valign="top" class="colsplit"> <table border="0" cellpadding="0" cellspacing="0" class="wrapto100pc"> <tr> <td align="left" valign="middle"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> <td align="left" valign="middle" style="font-family:Verdana, sans-serif; font-size:12px; line-height:20px; color:#ffffff;" class="footertext"> Follow us:<br> </td> <td width="10"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="10" height="1" border="0" style="display:block"></td> <td width="26" align="left" valign="top"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=10838&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Social link"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{547e4ffe-1246-4ff1-ba75-510d5f672710}_icon_facebook_26x26.gif" alt="Facebook" title="Facebook" width="26" height="26" border="0" style="display:block"></a> </td> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="4" height="1" border="0" style="display:block"></td> <td width="26" align="left" valign="top"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=10839&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Social link"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{dd4d3dc9-91e6-4a54-b6de-5f8d5ee2d1de}_icon_twitter_26x26.gif" alt="Twitter" title="Twitter" width="26" height="26" border="0" style="display:block"></a> </td> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="4" height="1" border="0" style="display:block"></td> <td width="26" align="left" valign="top"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=450&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Social link"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{f748c9a2-ef55-4c75-afd9-f4a2cdc63013}_icon_youtube_26x26.gif" alt="YouTube" title="YouTube" width="26" height="26" border="0" style="display:block"></a> </td> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="4" height="1" border="0" style="display:block"></td> <td width="26" align="left" valign="top"> <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=2355&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Social link"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{41b0810d-152a-4499-8bee-e3dede46f4b7}_icon_linkedin_26x26.gif" alt="LinkedIn" title="LinkedIn" width="26" height="26" border="0" style="display:block"></a> </td> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> <table width="640" border="0" cellpadding="0" cellspacing="0" class="wrapto100pc"> <tr> <td colspan="3"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> <tr> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> <td align="left" valign="top" style="font-family:Verdana, sans-serif; font-size:11px; line-height:18px; color:#555555;"> Image credits: <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29726&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Credit link" style="text-decoration:underline; color:#555555;">#144315021 Takuya Igarashi/Moment Select</a>, <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29727&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Credit link" style="text-decoration:underline; color:#555555;">#164837400 Thomas Barwick/Stone</a>, <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29728&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Credit link" style="text-decoration:underline; color:#555555;">#169496436 Dougal Waters/Taxi</a>, <a href="http://app.e.gettyimages.com/e/er?s=2768&lid=29729&elq=<span class=eloquaemail>recipientid</span>" target="_blank" name="Credit link" style="text-decoration:underline; color:#555555;">#171636821 Mayte Torres/Moment Select</a><br> <br> <span elqid="213" elqtype="Section" class="remove-absolute" style="display: block">You are subscribed to receive emails from Getty Images as <span unselectable="on" class="eloquaemail">EmailAddress</span>. <br><br> To unsubscribe, simply click <a title="here" href="http://app.e.gettyimages.com/e/f2.aspx?elqFormName=GettyUnsubscribe&elqSiteID=2768&e=<span class=eloquaemail>EmailAddress</span>&url=http://e.gettyimages.com/content/unsubscribe-en&elq=~~eloqua..type--emailfield..syntax--recipientid~~&elqCampaignId=~~eloqua..type--campaign..campaignid--0..fieldname--id~~">here</a>.<br> <br></span> <span elqid="34" elqtype="DynamicContent" class="remove-absolute" style="display: block"><strong>Getty Images International</strong><br> indirectsales@gettyimages.com<br> Tel: +44 203 227 2440<br> </span> <span elqid="214" elqtype="Section" class="remove-absolute" style="display: block">All contents © 2015 Getty Images. All rights reserved.<br> </span> </td> <td width="20"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="20" height="1" border="0" style="display:block"></td> </tr> <tr> <td colspan="3"><img src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{47eed8d5-645c-4e7e-8c96-868d2a7c248e}_icon_spacer_1x1.gif" width="1" height="20" border="0" style="display:block"></td> </tr> </table> <!-- end Footer --> </td> </tr> </table> <!--- Pixel Tracking ---> <table width="0" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td background="http://px.steelhousemedia.com/sti?aid=10129&segment=RNBemail&plh=http://www.gettyimages.com/"> <!--[if gte mso 9]> <v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style=\'behavior: url(#default#VML); display:inline-block; position:absolute; height:1px; width:1px; top:-1; left:-1; border:0; z-index:1;\' src="http://px.steelhousemedia.com/sti?aid=10129&segment=RNBemail&plh=http://www.gettyimages.com/"/> <v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style=\'behavior: url(#default#VML); display:inline-block; position:absolute; height:1px; width:1px; top:-1; left:-1; border:0; z-index:2;\'> <![endif]--> <!--[if gte mso 9]> </v:shape> <![endif]--> </td> <td background="http://connexity.net/c/cse?a=R&A=4f&D=d6c&V=9&b=[timestamp]"> <!--[if gte mso 9]> <v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style=\'behavior: url(#default#VML); display:inline-block; position:absolute; height:1px; width:1px; top:-1; left:-1; border:0; z-index:1;\' src="http://connexity.net/c/cse?a=R&A=4f&D=d6c&V=9&b=[timestamp]"/> <v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style=\'behavior: url(#default#VML); display:inline-block; position:absolute; height:1px; width:1px; top:-1; left:-1; border:0; z-index:2;\'> <![endif]--> <!--[if gte mso 9]> </v:shape> <![endif]--> </td> </tr> </table> <table width="0" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td background="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{03a81631-c8d7-4730-8c16-040ebba14756}_story_171636821_560x320.jpg"> <!--[if gte mso 9]> <v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style=\'behavior: url(#default#VML); display:inline-block; position:absolute; height:1px; width:1px; top:-1; left:-1; border:0; z-index:1;\' src="http://images.e.gettyimages.com/EloquaImages/clients/GettyImagesUSInc/{03a81631-c8d7-4730-8c16-040ebba14756}_story_171636821_560x320.jpg"/> <v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style=\'behavior: url(#default#VML); display:inline-block; position:absolute; height:1px; width:1px; top:-1; left:-1; border:0; z-index:2;\'> <![endif]--> <!--[if gte mso 9]> </v:shape> <![endif]--> </td> <td background="http://connexity.net/c/cse?a=R&A=4f&D=d6c&V=9&b=[timestamp]"> <!--[if gte mso 9]> <v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style=\'behavior: url(#default#VML); display:inline-block; position:absolute; height:1px; width:1px; top:-1; left:-1; border:0; z-index:1;\' src="http://connexity.net/c/cse?a=R&A=4f&D=d6c&V=9&b=[timestamp]"/> <v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style=\'behavior: url(#default#VML); display:inline-block; position:absolute; height:1px; width:1px; top:-1; left:-1; border:0; z-index:2;\'> <![endif]--> <!--[if gte mso 9]> </v:shape> <![endif]--> </td> </tr> </table> <!--- end of Pixel Tracking ---> </body> </html>" }, images: [ { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7b47eed8d5-645c-4e7e-8c96-868d2a7c248e%7d_icon_spacer_1x1.gif", name: "icon_spacer_1x1.gif" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7bcb0075a6-056c-4b61-a755-8b1bb5641982%7d_logo_getty_181x34.gif", name: "logo_getty_181x34.gif" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7bae2f98f6-222e-41b5-bae8-e99c06451d2f%7d_main_144315021_1200x680_na.jpg", name: "main_144315021_1200x680_na.jpg" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7b58558dff-5c0e-4e12-8783-98335b3ed27e%7d_story_164837400_560x320.jpg", name: "story_164837400_560x320.jpg" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7b52974b62-5018-4ad5-8411-fe42a852698a%7d_story_169496436_560x320.jpg", name: "story_169496436_560x320.jpg" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7be6006d61-6b4e-4303-971b-9933e56d4f77%7d_story_171636821_560x320.jpg", name: "story_171636821_560x320.jpg" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7bc32f8d87-d662-464a-8cbd-005c1ad25d9d%7d_footer_div_15x20.gif", name: "footer_div_15x20.gif" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7b547e4ffe-1246-4ff1-ba75-510d5f672710%7d_icon_facebook_26x26.gif", name: "icon_facebook_26x26.gif" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7bdd4d3dc9-91e6-4a54-b6de-5f8d5ee2d1de%7d_icon_twitter_26x26.gif", name: "icon_twitter_26x26.gif" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7bf748c9a2-ef55-4c75-afd9-f4a2cdc63013%7d_icon_youtube_26x26.gif", name: "icon_youtube_26x26.gif" }, { fullImageUrl: "/EloquaImages/clients/GettyImagesUSInc/%7b41b0810d-152a-4499-8bee-e3dede46f4b7%7d_icon_linkedin_26x26.gif", name: "icon_linkedin_26x26.gif" }, { fullImageUrl: "http://px.steelhousemedia.com/sti?aid=10129&segment=rnbemail&plh=http://www.gettyimages.com/", name: "" }, { fullImageUrl: "http://connexity.net/c/cse?a=r&a=4f&d=d6c&v=9&b=[timestamp]", name: "cse?a=r&a=4f&d=d6c&v=9&b=[timestamp]" }, { fullImageUrl: "http://images.e.gettyimages.com/eloquaimages/clients/gettyimagesusinc/{03a81631-c8d7-4730-8c16-040ebba14756}_story_171636821_560x320.jpg", name: "{03a81631-c8d7-4730-8c16-040ebba14756}_story_171636821_560x320.jpg" }, { fullImageUrl: "http://images.e.gettyimages.com/eloquaimages/clients/gettyimagesusinc/{fc5247c5-7c6e-48b9-a682-11f36b95dd15}_footerlinks_bg.gif", name: "{fc5247c5-7c6e-48b9-a682-11f36b95dd15}_footerlinks_bg.gif" } ], hyperlinks: [ { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29717&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=b09b6e6f079e4210a43bebcbb0e0259c" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29718&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=3bbe0da1cbc04175af287e53cdd20fea" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29717&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=1addd95384104e988c6415199397ed59" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29718&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=12c6e0daa7ef4a8b93d6cb1645e671b3" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29719&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=25dcf9ada9cb49ee9aa1a01a080f63bc" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29719&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=e9aa68767d824914b4659c1289a7241e" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29720&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=66bc24be06cc40fa8501836ab79ba17b" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29720&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=b015a90a185845f6ba66fe779f618f28" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29721&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=d4bbf77958aa4857983ff395aff1522a" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29721&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=c5b7e5b1623946c5b651ff893d18474a" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29722&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=1556705eb14d42a2863cfff11ff5476a" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29723&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=57c9da4db61c440d93e0c8ce308a0df4" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29724&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=6564350d36014c20b63c37dad31c6ed0" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29725&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=77b21db072e144f78b7f18765065da0f" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=10838&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=563369e713e44bc996d488cfa40cee3b" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=10839&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=50fc98a2cf7d4e78b8e09da93cadf857" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=450&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=6583e4cd6abb4f2f91867d900a0ba61a" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=2355&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=cdc255e6a1e9403499490cbb792b4a88" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29726&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=ed5c66e28487416cb338564e17d7e65c" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29727&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=2ed2634d7fb14307af266b3f792fdf5c" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29728&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=44b6cce047e04d2eb4de66d81818f369" }, { type: "Hyperlink", href: "http://<elqdomain type=1/>/e/er?s=2768&lid=29729&elq=<span class=eloquaemail>recipientid</span>&elqTrackId=9d3618fb31ad48d188f43c0bac01d5d8" } ], emailFooterId: "11", emailGroupId: "9", bounceBackEmail: "no-reply@e.gettyimages.com", name: "2014_04_ALL_GI_RNB_NA_RNB5a", encodingId: "3" }'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result var_dump($matches);

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 PHP, please visit: http://php.net/manual/en/ref.pcre.php