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

/
/
m

Test String

Code Generator

Generated Code

use strict; my $str = '<!DOCTYPE html> <html class=" responsive" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="theme-color" content="#171a21"> <title>Steam Community :: Hans Moleman</title> <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> <link href="https://community.akamai.steamstatic.com/public/shared/css/motiva_sans.css?v=-DH0xTYpnVe2&amp;l=english" rel="stylesheet" type="text/css" > <link href="https://community.akamai.steamstatic.com/public/shared/css/buttons.css?v=n-eRNszNIRMH&amp;l=english" rel="stylesheet" type="text/css" > <link href="https://community.akamai.steamstatic.com/public/shared/css/shared_global.css?v=91iUaiU5jFsi&amp;l=english" rel="stylesheet" type="text/css" > <link href="https://community.akamai.steamstatic.com/public/css/globalv2.css?v=8O3CKdwkJtsd&amp;l=english" rel="stylesheet" type="text/css" > <link href="https://community.akamai.steamstatic.com/public/css/skin_1/modalContent.css?v=.TP5s6TzX6LLh" rel="stylesheet" type="text/css" > <link href="https://community.akamai.steamstatic.com/public/css/skin_1/profilev2.css?v=lVFgRrBZ9xVo&amp;l=english" rel="stylesheet" type="text/css" > <link href="https://community.akamai.steamstatic.com/public/shared/css/motiva_sans.css?v=-DH0xTYpnVe2&amp;l=english" rel="stylesheet" type="text/css" > <link href="https://community.akamai.steamstatic.com/public/css/promo/summer2017/stickers.css?v=HA2Yr5oy3FFG&amp;l=english" rel="stylesheet" type="text/css" > <link href="https://community.akamai.steamstatic.com/public/shared/css/shared_responsive.css?v=uph-XuD9w5Pt&amp;l=english" rel="stylesheet" type="text/css" > <link href="https://community.akamai.steamstatic.com/public/css/skin_1/header.css?v=g7VmRhGIDEiu&amp;l=english" rel="stylesheet" type="text/css" > <script> (function(i,s,o,g,r,a,m){i[\'GoogleAnalyticsObject\']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,\'script\',\'//www.google-analytics.com/analytics.js\',\'ga\'); ga(\'create\', \'UA-33779068-1\', \'auto\', { \'sampleRate\': 0.4 }); ga(\'set\', \'dimension1\', false ); ga(\'set\', \'dimension2\', \'External\' ); ga(\'set\', \'dimension3\', \'profiles\' ); ga(\'set\', \'dimension4\', "profiles\\/DefaultAction" ); ga(\'send\', \'pageview\' ); </script> <script type="text/javascript"> var __PrototypePreserve=[]; __PrototypePreserve[0] = Array.from; __PrototypePreserve[1] = Function.prototype.bind; </script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/prototype-1.7.js?v=.55t44gwuwgvw" ></script> <script type="text/javascript"> Array.from = __PrototypePreserve[0] || Array.from; Function.prototype.bind = __PrototypePreserve[1] || Function.prototype.bind; </script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/scriptaculous/_combined.js?v=OeNIgrpEF8tL&amp;l=english&amp;load=effects,controls,slider,dragdrop" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/global.js?v=XT-oa2cZ6bfD&amp;l=english" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/jquery-1.11.1.min.js?v=.isFTSRckeNhC" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/shared/javascript/tooltip.js?v=.9Z1XDV02xrml" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/shared/javascript/shared_global.js?v=lTen8I023Ws5&amp;l=english" ></script> <script type="text/javascript">Object.seal && Object.seal( Object.prototype );</script><script type="text/javascript">$J = jQuery.noConflict(); if ( typeof JSON != \'object\' || !JSON.stringify || !JSON.parse ) { document.write( "<scr" + "ipt type=\\"text\\/javascript\\" src=\\"https:\\/\\/community.akamai.steamstatic.com\\/public\\/javascript\\/json2.js?v=pmScf4470EZP&amp;l=english\\" ><\\/script>\\n" ); }; </script><script type="text/javascript">VALVE_PUBLIC_PATH = "https:\\/\\/community.akamai.steamstatic.com\\/public\\/";</script> <script type="text/javascript"> document.addEventListener(\'DOMContentLoaded\', function(event) { SetupTooltips( { tooltipCSSClass: \'community_tooltip\'} ); }); </script><script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/modalContent.js?v=r2bYA9YEdC50&amp;l=english" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/modalv2.js?v=dfMhuy-Lrpyo&amp;l=english" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/profile.js?v=ucD6al0LfDDc&amp;l=english" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/promo/stickers.js?v=upl9NJ5D2xkP&amp;l=english" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/reportedcontent.js?v=pfLnheIyjpay&amp;l=english" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/webui/clientcom.js?v=kzMKjjmlfj4Z&amp;l=english" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/shared/javascript/shared_responsive_adapter.js?v=pVvZxRnSFjnX&amp;l=english" ></script> <meta name="twitter:card" content="summary"> <meta name="Description" content="No information given."> <meta name="twitter:site" content="@steam" /> <meta property="og:title" content="Steam Community :: Hans Moleman"> <meta property="twitter:title" content="Steam Community :: Hans Moleman"> <meta property="og:type" content="website"> <meta property="fb:app_id" content="105386699540688"> <meta property="og:description" content="No information given."> <meta property="twitter:description" content="No information given."> <link rel="image_src" href="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/e4/e433064b5be28f935b389c66b981c59ee1c7574a_full.jpg"> <meta property="og:image" content="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/e4/e433064b5be28f935b389c66b981c59ee1c7574a_full.jpg"> <meta name="twitter:image" content="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/e4/e433064b5be28f935b389c66b981c59ee1c7574a_full.jpg" /> </head> <body class="flat_page profile_page has_profile_background DefaultTheme responsive_page"> <div class="responsive_page_frame with_header"> <div class="responsive_page_menu_ctn mainmenu"> <div class="responsive_page_menu" id="responsive_page_menu"> <div class="mainmenu_contents"> <div class="mainmenu_contents_items"> <a class="menuitem" href="https://steamcommunity.com/login/home/?goto=profiles%2F76561198035593110%2F"> Login </a> <a class="menuitem supernav" href="https://store.steampowered.com/" data-tooltip-type="selector" data-tooltip-content=".submenu_store"> Store </a> <div class="submenu_store" style="display: none;" data-submenuid="store"> <a class="submenuitem" href="https://store.steampowered.com/">Home</a> <a class="submenuitem" href="https://store.steampowered.com/explore/">Discovery Queue</a> <a class="submenuitem" href="https://steamcommunity.com/my/wishlist/">Wishlist</a> <a class="submenuitem" href="https://store.steampowered.com/points/shop/">Points Shop</a> <a class="submenuitem" href="https://store.steampowered.com/news/">News</a> <a class="submenuitem" href="https://store.steampowered.com/stats/">Stats</a> </div> <a class="menuitem supernav" style="display: block" href="https://steamcommunity.com/" data-tooltip-type="selector" data-tooltip-content=".submenu_community"> Community </a> <div class="submenu_community" style="display: none;" data-submenuid="community"> <a class="submenuitem" href="https://steamcommunity.com/">Home</a> <a class="submenuitem" href="https://steamcommunity.com/discussions/">Discussions</a> <a class="submenuitem" href="https://steamcommunity.com/workshop/">Workshop</a> <a class="submenuitem" href="https://steamcommunity.com/market/">Market</a> <a class="submenuitem" href="https://steamcommunity.com/?subsection=broadcasts">Broadcasts</a> </div> <a class="menuitem" href="https://help.steampowered.com/en/"> Support </a> <div class="minor_menu_items"> <div class="menuitem change_language_action"> Change language </div> <div class="menuitem" onclick="Responsive_RequestDesktopView();"> View desktop website </div> </div> </div> <div class="mainmenu_footer_spacer "></div> <div class="mainmenu_footer"> <div class="mainmenu_footer_logo"><img src="https://community.akamai.steamstatic.com/public/shared/images/responsive/logo_valve_footer.png"></div> © Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries. <span class="mainmenu_valve_links"> <a href="https://store.steampowered.com/privacy_agreement/" target="_blank">#footer_privacy_policy</a> &nbsp;| &nbsp;<a href="http://www.valvesoftware.com/legal.htm" target="_blank">#footer_legal</a> &nbsp;| &nbsp;<a href="https://store.steampowered.com/subscriber_agreement/" target="_blank">#footer_ssa</a> &nbsp;| &nbsp;<a href="https://store.steampowered.com/steam_refunds/" target="_blank">#footer_refunds</a> </span> </div> </div> </div> </div> <div class="responsive_local_menu_tab"> </div> <div class="responsive_page_menu_ctn localmenu"> <div class="responsive_page_menu" id="responsive_page_local_menu"> <div class="localmenu_content"> </div> </div> </div> <div class="responsive_header"> <div class="responsive_header_content"> <div id="responsive_menu_logo"> <img src="https://community.akamai.steamstatic.com/public/shared/images/responsive/header_menu_hamburger.png" height="100%"> </div> <div class="responsive_header_logo"> <a href="https://store.steampowered.com/"> <img src="https://community.akamai.steamstatic.com/public/shared/images/responsive/header_logo.png" height="36" border="0" alt="STEAM"> </a> </div> </div> </div> <div class="responsive_page_content_overlay"> </div> <div class="responsive_fixonscroll_ctn nonresponsive_hidden "> </div> <div class="responsive_page_content"> <div id="global_header" data-gpnav="columns"> <div class="content"> <div class="logo"> <span id="logo_holder"> <a href="https://store.steampowered.com/"> <img src="https://community.akamai.steamstatic.com/public/shared/images/header/logo_steam.svg?t=962016" width="176" height="44"> </a> </span> </div> <div class="supernav_container"> <a class="menuitem supernav" href="https://store.steampowered.com/" data-tooltip-type="selector" data-tooltip-content=".submenu_store"> STORE </a> <div class="submenu_store" style="display: none;" data-submenuid="store"> <a class="submenuitem" href="https://store.steampowered.com/">Home</a> <a class="submenuitem" href="https://store.steampowered.com/explore/">Discovery Queue</a> <a class="submenuitem" href="https://steamcommunity.com/my/wishlist/">Wishlist</a> <a class="submenuitem" href="https://store.steampowered.com/points/shop/">Points Shop</a> <a class="submenuitem" href="https://store.steampowered.com/news/">News</a> <a class="submenuitem" href="https://store.steampowered.com/stats/">Stats</a> </div> <a class="menuitem supernav" style="display: block" href="https://steamcommunity.com/" data-tooltip-type="selector" data-tooltip-content=".submenu_community"> COMMUNITY </a> <div class="submenu_community" style="display: none;" data-submenuid="community"> <a class="submenuitem" href="https://steamcommunity.com/">Home</a> <a class="submenuitem" href="https://steamcommunity.com/discussions/">Discussions</a> <a class="submenuitem" href="https://steamcommunity.com/workshop/">Workshop</a> <a class="submenuitem" href="https://steamcommunity.com/market/">Market</a> <a class="submenuitem" href="https://steamcommunity.com/?subsection=broadcasts">Broadcasts</a> </div> <a class="menuitem" href="https://store.steampowered.com/about/"> ABOUT </a> <a class="menuitem" href="https://help.steampowered.com/en/"> SUPPORT </a> </div> <script type="text/javascript"> jQuery(function($) { $(\'#global_header .supernav\').v_tooltip({\'location\':\'bottom\', \'destroyWhenDone\': false, \'tooltipClass\': \'supernav_content\', \'offsetY\':-4, \'offsetX\': 1, \'horizontalSnap\': 4, \'tooltipParent\': \'#global_header .supernav_container\', \'correctForScreenSize\': false}); }); </script> <div id="global_actions"> <div id="global_action_menu"> <div class="header_installsteam_btn header_installsteam_btn_green"> <a class="header_installsteam_btn_content" href="https://store.steampowered.com/about/"> Install Steam </a> </div> <a class="global_action_link" href="https://steamcommunity.com/login/home/?goto=profiles%2F76561198035593110%2F">login</a> &nbsp;|&nbsp; <span class="pulldown global_action_link" id="language_pulldown" onclick="ShowMenu( this, \'language_dropdown\', \'right\' );">language</span> <div class="popup_block_new" id="language_dropdown" style="display: none;"> <div class="popup_body popup_menu"> <a class="popup_menu_item tight" href="?l=schinese" onclick="ChangeLanguage( \'schinese\' ); return false;">简体中文 (Simplified Chinese)</a> <a class="popup_menu_item tight" href="?l=tchinese" onclick="ChangeLanguage( \'tchinese\' ); return false;">繁體中文 (Traditional Chinese)</a> <a class="popup_menu_item tight" href="?l=japanese" onclick="ChangeLanguage( \'japanese\' ); return false;">日本語 (Japanese)</a> <a class="popup_menu_item tight" href="?l=koreana" onclick="ChangeLanguage( \'koreana\' ); return false;">한국어 (Korean)</a> <a class="popup_menu_item tight" href="?l=thai" onclick="ChangeLanguage( \'thai\' ); return false;">ไทย (Thai)</a> <a class="popup_menu_item tight" href="?l=bulgarian" onclick="ChangeLanguage( \'bulgarian\' ); return false;">Български (Bulgarian)</a> <a class="popup_menu_item tight" href="?l=czech" onclick="ChangeLanguage( \'czech\' ); return false;">Čeština (Czech)</a> <a class="popup_menu_item tight" href="?l=danish" onclick="ChangeLanguage( \'danish\' ); return false;">Dansk (Danish)</a> <a class="popup_menu_item tight" href="?l=german" onclick="ChangeLanguage( \'german\' ); return false;">Deutsch (German)</a> <a class="popup_menu_item tight" href="?l=spanish" onclick="ChangeLanguage( \'spanish\' ); return false;">Español - España (Spanish - Spain)</a> <a class="popup_menu_item tight" href="?l=latam" onclick="ChangeLanguage( \'latam\' ); return false;">Español - Latinoamérica (Spanish - Latin America)</a> <a class="popup_menu_item tight" href="?l=greek" onclick="ChangeLanguage( \'greek\' ); return false;">Ελληνικά (Greek)</a> <a class="popup_menu_item tight" href="?l=french" onclick="ChangeLanguage( \'french\' ); return false;">Français (French)</a> <a class="popup_menu_item tight" href="?l=italian" onclick="ChangeLanguage( \'italian\' ); return false;">Italiano (Italian)</a> <a class="popup_menu_item tight" href="?l=hungarian" onclick="ChangeLanguage( \'hungarian\' ); return false;">Magyar (Hungarian)</a> <a class="popup_menu_item tight" href="?l=dutch" onclick="ChangeLanguage( \'dutch\' ); return false;">Nederlands (Dutch)</a> <a class="popup_menu_item tight" href="?l=norwegian" onclick="ChangeLanguage( \'norwegian\' ); return false;">Norsk (Norwegian)</a> <a class="popup_menu_item tight" href="?l=polish" onclick="ChangeLanguage( \'polish\' ); return false;">Polski (Polish)</a> <a class="popup_menu_item tight" href="?l=portuguese" onclick="ChangeLanguage( \'portuguese\' ); return false;">Português (Portuguese)</a> <a class="popup_menu_item tight" href="?l=brazilian" onclick="ChangeLanguage( \'brazilian\' ); return false;">Português - Brasil (Portuguese - Brazil)</a> <a class="popup_menu_item tight" href="?l=romanian" onclick="ChangeLanguage( \'romanian\' ); return false;">Română (Romanian)</a> <a class="popup_menu_item tight" href="?l=russian" onclick="ChangeLanguage( \'russian\' ); return false;">Русский (Russian)</a> <a class="popup_menu_item tight" href="?l=finnish" onclick="ChangeLanguage( \'finnish\' ); return false;">Suomi (Finnish)</a> <a class="popup_menu_item tight" href="?l=swedish" onclick="ChangeLanguage( \'swedish\' ); return false;">Svenska (Swedish)</a> <a class="popup_menu_item tight" href="?l=turkish" onclick="ChangeLanguage( \'turkish\' ); return false;">Türkçe (Turkish)</a> <a class="popup_menu_item tight" href="?l=vietnamese" onclick="ChangeLanguage( \'vietnamese\' ); return false;">Tiếng Việt (Vietnamese)</a> <a class="popup_menu_item tight" href="?l=ukrainian" onclick="ChangeLanguage( \'ukrainian\' ); return false;">Українська (Ukrainian)</a> <a class="popup_menu_item tight" href="http://translation.steampowered.com" target="_blank">Help us translate Steam</a> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> g_sessionID = "5cd5af10d2e2bef721060934"; g_steamID = false; g_strLanguage = "english"; g_SNR = \'2_100300_DefaultAction_\'; g_bAllowAppImpressions = true // We always want to have the timezone cookie set for PHP to use setTimezoneCookies(); $J( function() { InitMiniprofileHovers(); InitEmoticonHovers(); ApplyAdultContentPreferences(); }); $J( function() { InitEconomyHovers( "https:\\/\\/community.akamai.steamstatic.com\\/public\\/css\\/skin_1\\/economy.css?v=09AGT_Kww_HY&l=english", "https:\\/\\/community.akamai.steamstatic.com\\/public\\/javascript\\/economy_common.js?v=tsXdRVB0yEaR&l=english", "https:\\/\\/community.akamai.steamstatic.com\\/public\\/javascript\\/economy.js?v=uSWx170LyQQO&l=english" );});</script> <div id="webui_config" style="display: none;" data-config="{&quot;EUNIVERSE&quot;:1,&quot;WEB_UNIVERSE&quot;:&quot;public&quot;,&quot;LANGUAGE&quot;:&quot;english&quot;,&quot;COUNTRY&quot;:&quot;MX&quot;,&quot;MEDIA_CDN_COMMUNITY_URL&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/steamcommunity\\/public\\/&quot;,&quot;MEDIA_CDN_URL&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/&quot;,&quot;COMMUNITY_CDN_URL&quot;:&quot;https:\\/\\/community.akamai.steamstatic.com\\/&quot;,&quot;COMMUNITY_CDN_ASSET_URL&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/steamcommunity\\/public\\/assets\\/&quot;,&quot;STORE_CDN_URL&quot;:&quot;https:\\/\\/store.akamai.steamstatic.com\\/&quot;,&quot;PUBLIC_SHARED_URL&quot;:&quot;https:\\/\\/community.akamai.steamstatic.com\\/public\\/shared\\/&quot;,&quot;COMMUNITY_BASE_URL&quot;:&quot;https:\\/\\/steamcommunity.com\\/&quot;,&quot;CHAT_BASE_URL&quot;:&quot;https:\\/\\/steamcommunity.com\\/&quot;,&quot;STORE_BASE_URL&quot;:&quot;https:\\/\\/store.steampowered.com\\/&quot;,&quot;IMG_URL&quot;:&quot;https:\\/\\/community.akamai.steamstatic.com\\/public\\/images\\/&quot;,&quot;STEAMTV_BASE_URL&quot;:&quot;https:\\/\\/steam.tv\\/&quot;,&quot;HELP_BASE_URL&quot;:&quot;https:\\/\\/help.steampowered.com\\/&quot;,&quot;PARTNER_BASE_URL&quot;:&quot;https:\\/\\/partner.steamgames.com\\/&quot;,&quot;STATS_BASE_URL&quot;:&quot;https:\\/\\/partner.steampowered.com\\/&quot;,&quot;INTERNAL_STATS_BASE_URL&quot;:&quot;https:\\/\\/steamstats.valve.org\\/&quot;,&quot;IN_CLIENT&quot;:false,&quot;USE_POPUPS&quot;:false,&quot;STORE_ICON_BASE_URL&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/steam\\/apps\\/&quot;,&quot;WEBAPI_BASE_URL&quot;:&quot;https:\\/\\/api.steampowered.com\\/&quot;,&quot;TOKEN_URL&quot;:&quot;https:\\/\\/steamcommunity.com\\/chat\\/clientjstoken&quot;,&quot;BUILD_TIMESTAMP&quot;:1619047754,&quot;PAGE_TIMESTAMP&quot;:1619102147,&quot;IN_TENFOOT&quot;:false,&quot;PLATFORM&quot;:&quot;windows&quot;,&quot;BASE_URL_STORE_CDN_ASSETS&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/store\\/&quot;,&quot;EREALM&quot;:1,&quot;SNR&quot;:&quot;2_100300_DefaultAction_&quot;}" data-userinfo="[]"> </div> <div id="application_config" style="display: none;" data-config="{&quot;EUNIVERSE&quot;:1,&quot;WEB_UNIVERSE&quot;:&quot;public&quot;,&quot;LANGUAGE&quot;:&quot;english&quot;,&quot;COUNTRY&quot;:&quot;MX&quot;,&quot;MEDIA_CDN_COMMUNITY_URL&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/steamcommunity\\/public\\/&quot;,&quot;MEDIA_CDN_URL&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/&quot;,&quot;COMMUNITY_CDN_URL&quot;:&quot;https:\\/\\/community.akamai.steamstatic.com\\/&quot;,&quot;COMMUNITY_CDN_ASSET_URL&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/steamcommunity\\/public\\/assets\\/&quot;,&quot;STORE_CDN_URL&quot;:&quot;https:\\/\\/store.akamai.steamstatic.com\\/&quot;,&quot;PUBLIC_SHARED_URL&quot;:&quot;https:\\/\\/community.akamai.steamstatic.com\\/public\\/shared\\/&quot;,&quot;COMMUNITY_BASE_URL&quot;:&quot;https:\\/\\/steamcommunity.com\\/&quot;,&quot;CHAT_BASE_URL&quot;:&quot;https:\\/\\/steamcommunity.com\\/&quot;,&quot;STORE_BASE_URL&quot;:&quot;https:\\/\\/store.steampowered.com\\/&quot;,&quot;IMG_URL&quot;:&quot;https:\\/\\/community.akamai.steamstatic.com\\/public\\/images\\/&quot;,&quot;STEAMTV_BASE_URL&quot;:&quot;https:\\/\\/steam.tv\\/&quot;,&quot;HELP_BASE_URL&quot;:&quot;https:\\/\\/help.steampowered.com\\/&quot;,&quot;PARTNER_BASE_URL&quot;:&quot;https:\\/\\/partner.steamgames.com\\/&quot;,&quot;STATS_BASE_URL&quot;:&quot;https:\\/\\/partner.steampowered.com\\/&quot;,&quot;INTERNAL_STATS_BASE_URL&quot;:&quot;https:\\/\\/steamstats.valve.org\\/&quot;,&quot;IN_CLIENT&quot;:false,&quot;USE_POPUPS&quot;:false,&quot;STORE_ICON_BASE_URL&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/steam\\/apps\\/&quot;,&quot;WEBAPI_BASE_URL&quot;:&quot;https:\\/\\/api.steampowered.com\\/&quot;,&quot;TOKEN_URL&quot;:&quot;https:\\/\\/steamcommunity.com\\/chat\\/clientjstoken&quot;,&quot;BUILD_TIMESTAMP&quot;:1619047754,&quot;PAGE_TIMESTAMP&quot;:1619102147,&quot;IN_TENFOOT&quot;:false,&quot;PLATFORM&quot;:&quot;windows&quot;,&quot;BASE_URL_STORE_CDN_ASSETS&quot;:&quot;https:\\/\\/cdn.akamai.steamstatic.com\\/store\\/&quot;,&quot;EREALM&quot;:1,&quot;SNR&quot;:&quot;2_100300_DefaultAction_&quot;}" data-userinfo="[]" data-community="[]" data-loyaltystore="{&quot;webapi_token&quot;:&quot;&quot;}"></div><link href="https://community.akamai.steamstatic.com/public/css/applications/community/main.css?v=ITaPZB5-rXns&amp;l=english" rel="stylesheet" type="text/css" > <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/applications/community/manifest.js?v=YtZNWATLbE1D&amp;l=english" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/applications/community/libraries.js?v=ZUcniA8nrmE0&amp;l=english" ></script> <script type="text/javascript" src="https://community.akamai.steamstatic.com/public/javascript/applications/community/main.js?v=gdKkBSayeV1g&amp;l=english" ></script> <div data-featuretarget="profile-rewards"></div> <div id="application_root"></div> <div class="responsive_page_template_content"> <script type="text/javascript"> g_rgProfileData = {"url":"https:\\/\\/steamcommunity.com\\/profiles\\/76561198035593110\\/","steamid":"76561198035593110","personaname":"Hans Moleman","summary":"No information given."}; $J( function() { window.Responsive_ReparentItemsInResponsiveMode && Responsive_ReparentItemsInResponsiveMode( \'.responsive_groupfriends_element\', $J(\'#responsive_groupfriends_element_ctn\') ); SetupAnimateOnHoverImages(); }); </script> <div class="no_header profile_page has_profile_background " style="background-image: url( \'https://cdn.akamai.steamstatic.com/steamcommunity/public/images/items/374320/43838fc2e0a686916f90fc682ef63dffef7ed250.jpg\' );"> <div class="profile_header_bg"> <div class="profile_header_bg_texture"> <div class="profile_header"> <div class="profile_header_content"> <div class="profile_header_centered_persona"> <div class="persona_name" style="font-size: 24px;"> <span class="actual_persona_name">Hans Moleman</span> <span class="namehistory_link" onclick="ShowAliasPopup( this );"> <img id="getnamehistory_arrow" src="https://community.akamai.steamstatic.com/public/images/skin_1/arrowDn9x5.gif" width="9" height="5" border="0"> </span> <div id="NamePopup" class="popup_block_new" style="display: none;"> <div class="popup_body popup_menu"> <div>This user has also played as:</div> <div id="NamePopupAliases"> </div> <div style="display:none" id="NamePopupClearAliases"> </div> <div style="clear:both"></div> </div> </div> </div> <div class="header_real_name ellipsis"> <bdi>Lo Wang</bdi> &nbsp; <img class="profile_flag" src="https://community.akamai.steamstatic.com/public/images/countryflags/us.gif"> United States </div> </div> <div class="playerAvatar profile_header_size online" data-miniprofile="75327382"> <div class="playerAvatarAutoSizeInner"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/e4/e433064b5be28f935b389c66b981c59ee1c7574a_full.jpg"> </div> </div> <div class="profile_header_badgeinfo"> <div class="profile_header_badgeinfo_badge_area"> <a href="https://steamcommunity.com/profiles/76561198035593110/badges"> <div class="persona_name persona_level">Level <div class="friendPlayerLevel lvl_10"><span class="friendPlayerLevelNum">12</span></div></div> </a> <div class="profile_header_badge"> <div class="favorite_badge"> <div class="favorite_badge_icon" data-tooltip-html="Years of Service<br> Member since 24 December, 2010."> <a class="whiteLink" href="https://steamcommunity.com/profiles/76561198035593110/badges/1"> <img src="https://community.akamai.steamstatic.com/public/images/badges/02_years/steamyears10_54.png" class="badge_icon small"> </a> </div> <div class="favorite_badge_description"> <div class="name ellipsis"><a class="whiteLink" href="https://steamcommunity.com/profiles/76561198035593110/badges/1">Years of Service</a></div> <div class="xp">500 XP</div> </div> </div> </div> </div> <div class="profile_header_actions"> </div> </div> <div class="profile_header_summary"> <div class="persona_name persona_name_spacer" style="font-size: 24px;"> <span class="actual_persona_name">&nbsp;</span> </div> <div class="header_real_name_spacer">&nbsp;</div> <div class="profile_summary"> No information given. </div> <div class="profile_summary_footer"> <span class="whiteLink" class="whiteLink">View more info</span> </div> <script type="text/javascript"> $J( function() { InitProfileSummary( g_rgProfileData[\'summary\'] ); } ); </script> </div> </div> </div> </div> </div> <div class="profile_content has_profile_background"> <div class="profile_content_inner"> <div class="profile_rightcol"> <div class="responsive_status_info"> <div class="profile_in_game persona online"> <div class="profile_in_game_header">Currently Online</div> </div> </div> <div class="responsive_count_link_area"> <div class="profile_badges"> <div class="profile_count_link_preview_ctn"> <div class="profile_count_link ellipsis"> <a href="https://steamcommunity.com/profiles/76561198035593110/badges/"> <span class="count_link_label">Badges</span>&nbsp; <span class="profile_count_link_total"> 5 </span> </a> </div> <div class="profile_count_link_preview"> <div class="profile_badges_badge " data-tooltip-html="Community Ambassador" > <a href="https://steamcommunity.com/profiles/76561198035593110/badges/2"> <img src="https://community.akamai.steamstatic.com/public/images/badges/01_community/community03_54.png" class="badge_icon small"> </a> </div> <div class="profile_badges_badge " data-tooltip-html="Game Mechanic&lt;br&gt; 284 games owned" > <a href="https://steamcommunity.com/profiles/76561198035593110/badges/13"> <img src="https://community.akamai.steamstatic.com/public/images/badges/13_gamecollector/250_54.png?v=4" class="badge_icon small"> </a> </div> <div class="profile_badges_badge " data-tooltip-html="Years of Service&lt;br&gt; Member since 24 December, 2010." > <a href="https://steamcommunity.com/profiles/76561198035593110/badges/1"> <img src="https://community.akamai.steamstatic.com/public/images/badges/02_years/steamyears10_54.png" class="badge_icon small"> </a> </div> <div class="profile_badges_badge last" data-tooltip-html="Monster Summer Badge&lt;br&gt; Level 670 Monster Summer Badge. Helped the Steam Community defeat monsters during the 2015 Steam Summer Sale." > <a href="https://steamcommunity.com/profiles/76561198035593110/badges/23"> <img src="https://community.akamai.steamstatic.com/public/images/badges/23_towerattack/600.png" class="badge_icon small"> </a> </div> <div style="clear: left;"></div> </div> </div> </div> <div id="responsive_groupfriends_element_ctn"> </div> <div class="profile_item_links"> <div class="profile_count_link ellipsis"> <a href="https://steamcommunity.com/profiles/76561198035593110/inventory/"> <span class="count_link_label">Inventory</span>&nbsp; <span class="profile_count_link_total"> &nbsp; <!-- so the line spaces like the rest --> </span> </a> </div> <div class="profile_count_link ellipsis"> <a href="https://steamcommunity.com/profiles/76561198035593110/screenshots/"> <span class="count_link_label">Screenshots</span>&nbsp; <span class="profile_count_link_total"> 98 </span> </a> </div> <div class="profile_count_link ellipsis"> <a href="https://steamcommunity.com/profiles/76561198035593110/recommended/"> <span class="count_link_label">Reviews</span>&nbsp; <span class="profile_count_link_total"> 5 </span> </a> </div> <div style="clear: left;"></div> </div> </div> <div class="profile_group_links profile_count_link_preview_ctn responsive_groupfriends_element"> <div class="profile_count_link ellipsis"> <a href="https://steamcommunity.com/profiles/76561198035593110/groups/"> <span class="count_link_label">Groups</span>&nbsp; <span class="profile_count_link_total"> 4 </span> </a> </div> <div class="profile_count_link_preview"> <div class="profile_group profile_primary_group"> <div class="profile_group_avatar"> <a href="https://steamcommunity.com/groups/eWrecked"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/fd/fd9c9b01ee399e6377353a6a4a74a635c39b15f5_medium.jpg"> </a> </div> <a class="whiteLink" href="https://steamcommunity.com/groups/eWrecked"> eWrecked </a> <div class="profile_group_membercount">18 Members</div> <div style="clear: left;"></div> </div> <div class="profile_group"> <div class="profile_group_avatar"> <a href="https://steamcommunity.com/groups/Hacker_Down"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb.jpg"> </a> </div> <a class="whiteLink" href="https://steamcommunity.com/groups/Hacker_Down"> Hacker Down </a> <div class="profile_group_membercount">33 Members</div> <div style="clear: left;"></div> </div> <div class="profile_group"> <div class="profile_group_avatar"> <a href="https://steamcommunity.com/groups/TopAnchors"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/ef/ef9999ec1724009edc4acea03573420949dd1280.jpg"> </a> </div> <a class="whiteLink" href="https://steamcommunity.com/groups/TopAnchors"> Top Anchors </a> <div class="profile_group_membercount">15 Members</div> <div style="clear: left;"></div> </div> </div> </div> <div class="profile_friend_links profile_count_link_preview_ctn responsive_groupfriends_element"> <div class="profile_count_link ellipsis"> <a href="https://steamcommunity.com/profiles/76561198035593110/friends/"> <span class="count_link_label">Friends</span>&nbsp; <span class="profile_count_link_total"> 27 </span> </a> </div> <div class="profile_topfriends profile_count_link_preview"> <div class="friendBlock persona offline" data-miniprofile="81428364" > <a class="friendBlockLinkOverlay" href="https://steamcommunity.com/profiles/76561198041694092"></a> <div class="friendPlayerLevel lvl_50"> <span class="friendPlayerLevelNum">59</span> </div> <div class="playerAvatar offline"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/9b/9bd24b1742558bd57bd3cd2f3a6f409f819ce7c8_medium.jpg"> </div> <div class="friendBlockContent"> cG Innershea (^)<br> <span class="friendSmallText"> Offline </span> </div> </div> <div class="friendBlock persona offline" data-miniprofile="138986703" > <a class="friendBlockLinkOverlay" href="https://steamcommunity.com/profiles/76561198099252431"></a> <div class="friendPlayerLevel lvl_40"> <span class="friendPlayerLevelNum">49</span> </div> <div class="playerAvatar offline"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/4c/4c4635bf9b3cd14a73d39a4608e92057d0885a70_medium.jpg"> </div> <div class="friendBlockContent"> Black Power...Ranger<br> <span class="friendSmallText"> Offline </span> </div> </div> <div class="friendBlock persona offline" data-miniprofile="29244151" > <a class="friendBlockLinkOverlay" href="https://steamcommunity.com/profiles/76561197989509879"></a> <div class="friendPlayerLevel lvl_40"> <span class="friendPlayerLevelNum">41</span> </div> <div class="playerAvatar offline"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/02/02f4cdb8a3eea168eec3265562662ea68e7f7edc_medium.jpg"> </div> <div class="friendBlockContent"> Stokes<br> <span class="friendSmallText"> Offline </span> </div> </div> <div class="friendBlock persona online" data-miniprofile="20429015" > <a class="friendBlockLinkOverlay" href="https://steamcommunity.com/profiles/76561197980694743"></a> <div class="friendPlayerLevel lvl_20"> <span class="friendPlayerLevelNum">22</span> </div> <div class="playerAvatar online"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/95/95b4a506fa12087631f4c2a4643b4234f79f1d95_medium.jpg"> </div> <div class="friendBlockContent"> Mantis Toboggan, M.D.<br> <span class="friendSmallText"> Online </span> </div> </div> <div class="friendBlock persona offline" data-miniprofile="65256926" > <a class="friendBlockLinkOverlay" href="https://steamcommunity.com/profiles/76561198025522654"></a> <div class="friendPlayerLevel lvl_10"> <span class="friendPlayerLevelNum">18</span> </div> <div class="playerAvatar offline"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/31/31488d157ef91d3988c05537af855366ab7af8d0_medium.jpg"> </div> <div class="friendBlockContent"> Russian Guyovich<br> <span class="friendSmallText"> Offline </span> </div> </div> <div class="friendBlock persona offline" data-miniprofile="9236224" > <a class="friendBlockLinkOverlay" href="https://steamcommunity.com/id/BallsSmith"></a> <div class="friendPlayerLevel lvl_10"> <span class="friendPlayerLevelNum">15</span> </div> <div class="playerAvatar offline"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/83/837a3f20e93cfc33776bc6a1f4c76c6aaa0bd9f7_medium.jpg"> </div> <div class="friendBlockContent"> Balls Smith<br> <span class="friendSmallText"> Offline </span> </div> </div> </div> </div> </div> <div class="profile_leftcol"> <div class="profile_comment_area"> <script type="text/javascript"> $J( function() { InitializeCommentThread( "Profile", "Profile_76561198035593110", {"feature":"-1","feature2":-1,"owner":"76561198035593110","total_count":3,"start":0,"pagesize":6,"has_upvoted":0,"upvotes":0,"votecountid":null,"voteupid":null,"commentcountid":null,"subscribed":false}, \'https://steamcommunity.com/comment/Profile/\', 40 ); } ); </script> <div class="commentthread_area" id="commentthread_Profile_76561198035593110_area"> <div class="commentthread_header"> <div class="commentthread_paging " id="commentthread_Profile_76561198035593110_pagecontrols"> <a id="commentthread_Profile_76561198035593110_pagebtn_prev" href="javascript:void(0);" class="pagebtn">&lt;</a> <span id="commentthread_Profile_76561198035593110_pagelinks" class="commentthread_pagelinks"></span> <span id="commentthread_Profile_76561198035593110_pagedropdown" class="commentthread_pagedropdown"></span> <a id="commentthread_Profile_76561198035593110_pagebtn_next" href="javascript:void(0);" class="pagebtn">&gt;</a> </div> <div class="commentthread_count"> <span class="ellipsis commentthread_count_label"> <span class="commentthread_header_label">Comments</span> </span> </div> <div style="clear: both;"></div> </div> <!-- 21 --> <div class="commentthread_comment_container" id="commentthread_Profile_76561198035593110_postcontainer"> <div class="commentthread_comments" id="commentthread_Profile_76561198035593110_posts"> <div class="commentthread_comment responsive_body_text " id="comment_3016788968182339552" style=""> <div class="commentthread_comment_avatar playerAvatar offline"> <a href="https://steamcommunity.com/id/mikeymckillyou" data-miniprofile="3992435"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/4f/4f287c368dfcfb9604feb96b4d79fa819917721a.jpg" srcset="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/4f/4f287c368dfcfb9604feb96b4d79fa819917721a.jpg 1x, https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/4f/4f287c368dfcfb9604feb96b4d79fa819917721a_medium.jpg 2x"> </a> </div> <div class="commentthread_comment_content"> <div class="commentthread_comment_author"> <a class="hoverunderline commentthread_author_link" href="https://steamcommunity.com/id/mikeymckillyou" data-miniprofile="3992435"> <bdi>MikeyMcKillYou</bdi></a> <span class="commentthread_comment_timestamp" title="16 March, 2020 @ 7:59:14 pm CDT" data-timestamp="1584406754"> 16 Mar, 2020 @ 7:59pm&nbsp; </span> <div class="commentthread_comment_actions" > </div> </div> <div class="commentthread_comment_text" id="comment_content_3016788968182339552"> touch me. </div> </div> </div> <div class="commentthread_comment responsive_body_text " id="comment_152390014803541901" style=""> <div class="commentthread_comment_avatar playerAvatar offline"> <a href="https://steamcommunity.com/profiles/76561197965066337" data-miniprofile="4800609"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c4/c4da0b8a0ca96adae08c0a7e7e66f9b45336bd0f.jpg" srcset="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c4/c4da0b8a0ca96adae08c0a7e7e66f9b45336bd0f.jpg 1x, https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/c4/c4da0b8a0ca96adae08c0a7e7e66f9b45336bd0f_medium.jpg 2x"> </a> </div> <div class="commentthread_comment_content"> <div class="commentthread_comment_author"> <a class="hoverunderline commentthread_author_link" href="https://steamcommunity.com/profiles/76561197965066337" data-miniprofile="4800609"> <bdi>MaxXo</bdi></a> <span class="commentthread_comment_timestamp" title="29 November, 2016 @ 6:40:10 pm CDT" data-timestamp="1480466410"> 29 Nov, 2016 @ 6:40pm&nbsp; </span> <div class="commentthread_comment_actions" > </div> </div> <div class="commentthread_comment_text" id="comment_content_152390014803541901"> This guy </div> </div> </div> <div class="commentthread_comment responsive_body_text " id="comment_620700960460605540" style=""> <div class="commentthread_comment_avatar playerAvatar offline"> <a href="https://steamcommunity.com/profiles/76561198025522654" data-miniprofile="65256926"> <img src="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/31/31488d157ef91d3988c05537af855366ab7af8d0.jpg" srcset="https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/31/31488d157ef91d3988c05537af855366ab7af8d0.jpg 1x, https://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/31/31488d157ef91d3988c05537af855366ab7af8d0_medium.jpg 2x"> </a> </div> <div class="commentthread_comment_content"> <div class="commentthread_comment_author"> <a class="hoverunderline commentthread_author_link" href="https://steamcommunity.com/profiles/76561198025522654" data-miniprofile="65256926"> <bdi>Russian Guyovich</bdi></a> <span class="commentthread_comment_timestamp" title="27 December, 2014 @ 1:27:41 pm CDT" data-timestamp="1419708461"> 27 Dec, 2014 @ 1:27pm&nbsp; </span> <div class="commentthread_comment_actions" > </div> </div> <div class="commentthread_comment_text" id="comment_content_620700960460605540"> You are hearing me talk. </div> </div> </div> </div> </div> <div class="commentthread_footer"> <div class="commentthread_paging" id="commentthread_Profile_76561198035593110_fpagecontrols"> <a id="commentthread_Profile_76561198035593110_fpagebtn_prev" href="javascript:void(0);" class="pagebtn">&lt;</a> <span id="commentthread_Profile_76561198035593110_fpagelinks" class="commentthread_pagelinks"></span> <span id="commentthread_Profile_76561198035593110_fpagedropdown" class="commentthread_pagedropdown"></span> <a id="commentthread_Profile_76561198035593110_fpagebtn_next" href="javascript:void(0);" class="pagebtn">&gt;</a> </div> <div style="clear: both;"></div> </div> </div> </div> </div> <div style="clear: both;"></div> </div> </div> </div> </div> <!-- responsive_page_legacy_content --> <div id="footer_spacer" class=""></div> <div id="footer_responsive_optin_spacer"></div> <div id="footer"> <div class="footer_content"> <span id="footerLogo"><img src="https://community.akamai.steamstatic.com/public/images/skin_1/footerLogo_valve.png?v=1" width="96" height="26" border="0" alt="Valve Logo" /></span> <span id="footerText"> &copy; Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries.<br/>Some geospatial data on this website is provided by <a href="https://steamcommunity.com/linkfilter/?url=http://www.geonames.org" target="_blank" rel="noreferrer">geonames.org</a>. <br> <span class="valve_links"> <a href="http://store.steampowered.com/privacy_agreement/" target="_blank">Privacy Policy</a> &nbsp; | &nbsp;<a href="https://store.steampowered.com/legal/" target="_blank">Legal</a> &nbsp;| &nbsp;<a href="http://store.steampowered.com/subscriber_agreement/" target="_blank">Steam Subscriber Agreement</a> &nbsp;| &nbsp;<a href="http://store.steampowered.com/account/cookiepreferences/" target="_blank">Cookies</a> </span> </span> </div> <div class="responsive_optin_link"> <div class="btn_medium btnv6_grey_black" onclick="Responsive_RequestMobileView()"> <span>View mobile website</span> </div> </div> </div> </div> <!-- responsive_page_content --> </div> <!-- responsive_page_frame --> </body> </html>'; my $regex = qr/https.+avatars.+jpg/mp; if ( $str =~ /$regex/ ) { print "Whole match is ${^MATCH} and its start/end positions can be obtained via \$-[0] and \$+[0]\n"; # print "Capture Group 1 is $1 and its start/end positions can be obtained via \$-[1] and \$+[1]\n"; # print "Capture Group 2 is $2 ... and so on\n"; } # ${^POSTMATCH} and ${^PREMATCH} are also available with the use of '/p' # Named capture groups can be called via $+{name}

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 Perl, please visit: http://perldoc.perl.org/perlre.html