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
No Match

/
/

Test String

Code Generator

Generated Code

use strict; my $str = 'HTTP/1.1 200 OK Date: Fri, 11 Sep 2015 15:39:48 GMT Server: Apache X-Pingback: http://www.myloadtest.com/xmlrpc.php Link: <http://www.myloadtest.com/?p=216>; rel=shortlink Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding,User-Agent Content-Length: 8235 Content-Type: text/html; charset=UTF-8 Proxy-Connection: Keep-Alive Connection: Keep-Alive Content-Encoding: gzip <!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <title>Correlation Challenge &#8211; My Load Test</title> <link rel="stylesheet" href="http://www.myloadtest.com/wp-content/themes/myloadtest2012j/style.css"> <link rel="stylesheet" href="http://www.myloadtest.com/wp-content/themes/myloadtest2012j/styles/header-boxtop-body-bg.css"> <link rel="pingback" href="http://www.myloadtest.com/xmlrpc.php"> <link href=\'http://fonts.googleapis.com/css?family=Oswald:400,300,700\' rel=\'stylesheet\' type=\'text/css\'> <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <link rel="alternate" type="application/rss+xml" title="My Load Test &raquo; Feed" href="http://www.myloadtest.com/feed/" /> <link rel="alternate" type="application/rss+xml" title="My Load Test &raquo; Comments Feed" href="http://www.myloadtest.com/comments/feed/" /> <link rel="alternate" type="application/rss+xml" title="My Load Test &raquo; Correlation Challenge Comments Feed" href="http://www.myloadtest.com/training/correlation-challenge/feed/" /> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"http:\\/\\/s.w.org\\/images\\/core\\/emoji\\/72x72\\/","ext":".png","source":{"concatemoji":"http:\\/\\/www.myloadtest.com\\/wp-includes\\/js\\/wp-emoji-release.min.js?ver=4.3"}}; !function(a,b,c){function d(a){var c=b.createElement("canvas"),d=c.getContext&&c.getContext("2d");return d&&d.fillText?(d.textBaseline="top",d.font="600 32px Arial","flag"===a?(d.fillText(String.fromCharCode(55356,56812,55356,56807),0,0),c.toDataURL().length>3e3):(d.fillText(String.fromCharCode(55357,56835),0,0),0!==d.getImageData(16,16,1,1).data[0])):!1}function e(a){var c=b.createElement("script");c.src=a,c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var f,g;c.supports={simple:d("simple"),flag:d("flag")},c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.simple&&c.supports.flag||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings); </script> <style type="text/css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel=\'stylesheet\' id=\'yarppWidgetCss-css\' href=\'http://www.myloadtest.com/wp-content/plugins/yet-another-related-posts-plugin/style/widget.css?ver=4.3\' type=\'text/css\' media=\'all\' /> <link rel=\'stylesheet\' id=\'contact-form-7-css\' href=\'http://www.myloadtest.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.2.1\' type=\'text/css\' media=\'all\' /> <link rel=\'stylesheet\' id=\'wp-syntax-css-css\' href=\'http://www.myloadtest.com/wp-content/plugins/wp-syntax/css/wp-syntax.css?ver=1.0\' type=\'text/css\' media=\'all\' /> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-includes/js/jquery/jquery.js?ver=1.11.3\'></script> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1\'></script> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4\'></script> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-includes/js/jquery/ui/widget.min.js?ver=1.11.4\'></script> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-includes/js/jquery/ui/tabs.min.js?ver=1.11.4\'></script> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-content/themes/myloadtest2012j/js/sprout.combined.min.js?ver=1.0\'></script> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-content/themes/myloadtest2012j/js/jquery.theme.js?ver=1.0\'></script> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-content/plugins/google-analyticator/external-tracking.min.js?ver=6.4.9\'></script> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.myloadtest.com/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://www.myloadtest.com/wp-includes/wlwmanifest.xml" /> <link rel=\'canonical\' href=\'http://www.myloadtest.com/training/correlation-challenge/\' /> <link rel=\'shortlink\' href=\'http://www.myloadtest.com/?p=216\' /> <script> var _prum = [[\'id\', \'5191e0f6abe53d5549000000\'], [\'mark\', \'firstbyte\', (new Date()).getTime()]]; (function() { var s = document.getElementsByTagName(\'script\')[0] , p = document.createElement(\'script\'); p.async = \'async\'; p.src = \'//rum-static.pingdom.net/prum.min.js\'; s.parentNode.insertBefore(p, s); })(); </script> <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style> <style type="text/css">.broken_link, a.broken_link { text-decoration: line-through; }</style><!-- Google Analytics Tracking by Google Analyticator 6.4.9: http://www.videousermanuals.com/google-analyticator/ --> <script type="text/javascript"> var analyticsFileTypes = [\'\']; var analyticsSnippet = \'enabled\'; var analyticsEventTracking = \'enabled\'; </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push([\'_setAccount\', \'UA-3179857-2\']); _gaq.push([\'_addDevId\', \'i9k95\']); // Google Analyticator App ID with Google _gaq.push([\'_trackPageview\']); (function() { var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true; ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\'; var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body class="page page-id-216 page-child parent-pageid-294 page-template page-template-__correlation-challenge page-template-__correlation-challenge-php ie8"> <header id="header"> <div id="header-inner" class="container-12"> <p id="logo" class="logo-img"><a href="http://www.myloadtest.com/" rel="home"><img src="http://www.myloadtest.com/wp-content/themes/myloadtest2012j/images/myloadtest.png" alt="My Load Test"></a></p> <nav id="nav-header" class="menu-header-menu-container"><ul id="nav" class="menu"><li id="menu-item-244" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-244"><a href="http://www.myloadtest.com/loadrunner/">LoadRunner</a></li> <li id="menu-item-245" class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-245"><a href="http://www.myloadtest.com/blog/">Blog</a></li> <li id="menu-item-3340" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-3340"><a title="Performance Testing Services" href="http://www.myloadtest.com/services/">Services</a> <ul class="sub-menu"> <li id="menu-item-3341" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3341"><a href="http://www.myloadtest.com/services/governance/">Performance Test Governance</a></li> <li id="menu-item-3434" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3434"><a href="http://www.myloadtest.com/services/continuous-integration/">Continuous Integration</a></li> <li id="menu-item-3125" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3125"><a href="http://www.myloadtest.com/services/script-development/">Script Development</a></li> </ul> </li> <li id="menu-item-246" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-246"><a href="http://www.myloadtest.com/tools/">Tools</a> <ul class="sub-menu"> <li id="menu-item-309" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-309"><a href="http://www.myloadtest.com/tools/vugen-addin-manager/">VuGen Add-in Manager</a></li> <li id="menu-item-291" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-291"><a href="http://www.myloadtest.com/tools/validator/">VuGen Validator Add-in</a></li> <li id="menu-item-361" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-361"><a href="http://www.myloadtest.com/tools/loadrunner-function-library/">LoadRunner Function Library</a></li> <li id="menu-item-259" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-259"><a href="http://www.myloadtest.com/loadrunner-syntax-highlighter/">LoadRunner Syntax Highlighting</a></li> <li id="menu-item-3189" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3189"><a href="http://www.myloadtest.com/tools/vugen-local-replay/">VuGen Local Replay</a></li> <li id="menu-item-3275" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3275"><a href="http://www.myloadtest.com/tools/urldecoder/">URLEncode/URLDecode</a></li> </ul> </li> <li id="menu-item-295" class="menu-item menu-item-type-post_type menu-item-object-page current-page-ancestor current-menu-ancestor current-menu-parent current-page-parent current_page_parent current_page_ancestor menu-item-has-children menu-item-295"><a href="http://www.myloadtest.com/training/">Training</a> <ul class="sub-menu"> <li id="menu-item-355" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-355"><a href="http://www.myloadtest.com/training/vugen-scripting-for-web/">VuGen Scripting for Web</a></li> <li id="menu-item-248" class="menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-216 current_page_item menu-item-248"><a href="http://www.myloadtest.com/training/correlation-challenge/">Correlation Challenge</a></li> <li id="menu-item-2806" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2806"><a href="http://www.myloadtest.com/training/credit-card-challenge/">Credit Card Challenge</a></li> </ul> </li> <li id="menu-item-247" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-247"><a href="http://www.myloadtest.com/about/">About</a></li> </ul></nav> </div><!--/header-inner--> </header><!--/header--> <div id="headstyle-nav"> </div><!--/headstyle-nav--> <div id="headstyle"> <div id="headstyle-bg"> </div> <div id="headstyle-arc"></div> </div><!--/headstyle--> <div id="wrapper"> <div id="subheader"> <div id="subheader-top"></div> <div id="subheader-inner" class="container-12 clearfix"> <h2 class="ctitle"><span>MyLoadTest</span></h2> <div class="clear"></div> </div><!--/subheader-inner--> </div><!--/subheader--> <div id="content"> <div id="content-inner" class="container-12 sidebar t-page clearfix"> <div class="grid entry-list"> <article id="entry-216" class="entry post-216 page type-page status-publish hentry"> <div class="entry-inner"> <header> <h2 class="entry-title">Correlation Challenge</h2> </header> <div class="text clearfix"> <h3>Step 3</h3> <p>Select all the books that are <em>in stock</em>, and press next.</p> <p> <form action="http://www.myloadtest.com/training/correlation-challenge/?step=4" method="post"> <input type="hidden" name="sortoption" value="PRICE_ASCENDING" /> <input type="hidden" name="next" value="addToBasket" /> <input type="hidden" name="basket" value="3761" /> <table border="1"> <tr> <th>Title</th> <th>Author</th> <th>Availability</th> <th>Select</th> </tr> <tr> <td><a href="http://www.amazon.com/Fundamentals-Performance-Engineering-firefighter-without/dp/1934474010">Fundamentals of Performance Engineering</a></td> <td>Keith Smith, Bob Wescott</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="3761804987b9709e8b09c4f134ef35cc973d" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Software-Performance-Scalability-Quantitative-Engineering/dp/0470462531">Software Performance and Scalability</a></td> <td>Henry H. Liu</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="37616b5b7fa112c1b395fc6e4eea63722b19" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Web-Performance-Tuning-OReilly-Internet/dp/059600172X">Web Performance Tuning</a></td> <td>Patrick Killelea</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="37612f4d1c1a342a51bef1326de9c88d226a" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Art-Capacity-Planning-Scaling-Resources/dp/0596518579">The Art of Capacity Planning</a></td> <td>John Allspaw</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="376194acde8a661f319e8348261421971310" /></td> </tr> <tr> <td><a href="http://www.amazon.com/NET-Performance-Testing-Optimization-Complete/dp/1906434409">.NET Performance Testing and Optimization</a></td> <td>Paul Glavich, Chris Farrell</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="3761443df13bf05f1b2fa1664d06af01731d" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Practical-Performance-Analyst-Neil-Gunther/dp/059512674X">The Practical Performance Analyst</a></td> <td>Neil Gunther</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="376114e688ad0b2a746c8087e0ccf44a4c20" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Integrated-Approach-Performance-Testing-Practitioners/dp/1591407850/">Integrated Approach to Web Performance Testing</a></td> <td>B. M. Subraya</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="37614e962b42835918912b5eeb2db8b3217f" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Performance-Testing-Guidance-Web-Applications/dp/0735625700">Performance Testing Guidance for Web Applications</a></td> <td>J.D. Meier, Carlos Farre, Prashant Bansode, Scott Barber, Dennis Rea</td> <td>In Stock</td> <td><input type="checkbox" name="bookId[]" value="37615fe6ff3dfb8b410774a9ac519da79f8c" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Scalable-Internet-Architectures-Theo-Schlossnagle/dp/067232699X">Scalable Internet Architectures</a></td> <td>Theo Schlossnagle</td> <td>In Stock</td> <td><input type="checkbox" name="bookId[]" value="37614397eff1747c99aaa425f129a8bd7339" /></td> </tr> <tr> <td><a href="http://www.amazon.com/High-Performance-Web-Sites-Essential/dp/0596529309">High Performance Web Sites</a></td> <td>Steve Souders</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="3761893d16f12c7ddc491755083a857c421e" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Java-Performance-Tuning-Jack-Shirazi/dp/0596003773">Java Performance Tuning</a></td> <td>Jack Shirazi</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="3761441417e472ec3823d64c901e1b91b86a" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Art-Application-Performance-Testing-Programmers/dp/0596520662">The Art of Application Performance Testing</a></td> <td>Ian Molyneaux</td> <td>In Stock</td> <td><input type="checkbox" name="bookId[]" value="37616181430fb9078c586008a936f1e2f6d5" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Performance-Analysis-Websites-Stacy-Joines/dp/0201844540">Performance Analysis for Java Websites</a></td> <td>Stacy Joines, Ruth Willenborg, Ken Hygh</td> <td>In Stock</td> <td><input type="checkbox" name="bookId[]" value="37615b65c8f37180ebefd2eb44d60e9f4bf3" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Apache-JMeter-practical-performance-measurement/dp/1847192955">Apache JMeter</a></td> <td>Emily H. Halili</td> <td>In Stock</td> <td><input type="checkbox" name="bookId[]" value="3761b63f76b1b652b90bd22b6d3623cc11d9" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Scalability-Rules-Principles-Scaling-Sites/dp/0321753887">Scalability Rules</a></td> <td>Martin L. Abbott, Michael T. Fisher</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="376134099c0b5a9dc62f87f5690d9ddfa322" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Building-Scalable-Web-Sites-Applications/dp/0596102356">Building Scalable Web Sites</a></td> <td>Cal Henderson</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="3761d23a39c5964a9cb410c68c1328d0ef70" /></td> </tr> <tr> <td><a href="http://www.amazon.com/Art-Scalability-Architecture-Organizations-Enterprise/dp/0137030428">The Art of Scalability</a></td> <td>Martin L. Abbott, Michael T. Fisher</td> <td>Out of Stock</td> <td><input type="checkbox" name="bookId[]" value="3761c952f17f24a8260e1189d98d757b15fc" /></td> </tr> </table> <input type="submit" value="Next" /> </form> <div class="clear"></div> </div> </div><!--/entry-inner--> <ul class="entry-meta clearfix"> <li class="categories"><i class="icon-16 categories"></i></li> </ul> </article> </div><!--/grid--> <div id="sidebar" class="grid-4"> <div id="sidebar-wide" class="clearfix"> <ul> <li id="search-2" class="widget widget_search"><form role="search" method="get" id="searchform" class="searchform" action="http://www.myloadtest.com/"> <div> <label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form></li><li id="text-5" class="widget widget_text"><h3 class="widget-title"><span>About MyLoadTest</span></h3> <div class="textwidget"><p>MyLoadTest is a boutique consultancy company, specialising in performance testing. We are dedicated to improving the quality of performance testing through education and better tools.</p></div> </li><li id="text-7" class="widget widget_text"> <div class="textwidget"><a href="http://www.myloadtest.com/mailing-list/"><img src="http://www.myloadtest.com/resources/myloadtest-mailing-list.png" alt="Performance Testing mailing list" height="79" width="210" /></a></div> </li><li id="text-8" class="widget widget_text"> <div class="textwidget"><img src="http://www.myloadtest.com/wp-content/themes/myloadtest2012j/images/myloadtest-logo.png" alt="MyLoadTest" height="180" width="240" /> </div> </li> </ul> </div><!--/sidebar-wide--> </div><!--/grid--> </div><!--/content-inner--> </div><!--/content--> <div id="footernav"> <div id="footernav-inner" class="container-12"> <div class="clear"></div> </div><!--/footernav-inner--> </div><!--/footernav--> <div id="subfooter"> <div id="subfooter-inner" class="container-12"> <h3 class="ctitle"><span>More on My Load Test</span></h3> <ul class="grid-3"> <li id="recent-posts-2" class="widget widget_recent_entries"> <h4 class="widget-title"><span>Recent Posts</span></h4> <ul> <li> <a href="http://www.myloadtest.com/new-relic-vs-appdynamics/">New Relic vs. AppDynamics</a> </li> <li> <a href="http://www.myloadtest.com/static-analysis-for-loadrunner/">Static code analysis for LoadRunner scripts</a> </li> <li> <a href="http://www.myloadtest.com/performance-testing-in-the-cloud/">Performance Testing in the Cloud</a> </li> <li> <a href="http://www.myloadtest.com/iqnite-australia-2014/">Iqnite Australia 2014</a> </li> <li> <a href="http://www.myloadtest.com/performance-testing-memes/">Performance Testing memes</a> </li> </ul> </li> </ul> <ul class="grid-3"> <li id="recent-comments-2" class="widget widget_recent_comments"><h4 class="widget-title"><span>Recent Comments</span></h4><ul id="recentcomments"><li class="recentcomments"><span class="comment-author-link">Richard</span> on <a href="http://www.myloadtest.com/vugen-runtime-settings/#comment-358452">LoadRunner Script Runtime Settings</a></li><li class="recentcomments"><span class="comment-author-link">Stuart Moncrieff</span> on <a href="http://www.myloadtest.com/vugen-runtime-settings/#comment-357080">LoadRunner Script Runtime Settings</a></li><li class="recentcomments"><span class="comment-author-link">Natalie</span> on <a href="http://www.myloadtest.com/new-relic-vs-appdynamics/#comment-357055">New Relic vs. AppDynamics</a></li><li class="recentcomments"><span class="comment-author-link">Richard</span> on <a href="http://www.myloadtest.com/vugen-runtime-settings/#comment-356953">LoadRunner Script Runtime Settings</a></li><li class="recentcomments"><span class="comment-author-link">Stuart Moncrieff</span> on <a href="http://www.myloadtest.com/loadrunner-vs-performance-center/#comment-356913">LoadRunner vs. Performance Center</a></li></ul></li> </ul> <ul class="grid-6"> <li id="tag_cloud-2" class="widget widget_tag_cloud"><h4 class="widget-title"><span>Tags</span></h4><div class="tagcloud"><a href=\'http://www.myloadtest.com/tag/add-ins/\' class=\'tag-link-83\' title=\'4 topics\' style=\'font-size: 13.045045045045pt;\'>add-ins</a> <a href=\'http://www.myloadtest.com/tag/ajax/\' class=\'tag-link-66\' title=\'1 topic\' style=\'font-size: 8pt;\'>Ajax</a> <a href=\'http://www.myloadtest.com/tag/awk/\' class=\'tag-link-63\' title=\'1 topic\' style=\'font-size: 8pt;\'>awk</a> <a href=\'http://www.myloadtest.com/tag/bpm/\' class=\'tag-link-25\' title=\'2 topics\' style=\'font-size: 10.27027027027pt;\'>BPM</a> <a href=\'http://www.myloadtest.com/tag/c/\' class=\'tag-link-80\' title=\'1 topic\' style=\'font-size: 8pt;\'>C</a> <a href=\'http://www.myloadtest.com/tag/captcha/\' class=\'tag-link-68\' title=\'1 topic\' style=\'font-size: 8pt;\'>CAPTCHA</a> <a href=\'http://www.myloadtest.com/tag/certification/\' class=\'tag-link-74\' title=\'4 topics\' style=\'font-size: 13.045045045045pt;\'>certification</a> <a href=\'http://www.myloadtest.com/tag/citrix-ica/\' class=\'tag-link-71\' title=\'1 topic\' style=\'font-size: 8pt;\'>Citrix ICA</a> <a href=\'http://www.myloadtest.com/tag/conference/\' class=\'tag-link-55\' title=\'12 topics\' style=\'font-size: 18.216216216216pt;\'>conference</a> <a href=\'http://www.myloadtest.com/tag/consulting-2/\' class=\'tag-link-69\' title=\'3 topics\' style=\'font-size: 11.783783783784pt;\'>consulting</a> <a href=\'http://www.myloadtest.com/tag/hp-diagnostics/\' class=\'tag-link-56\' title=\'1 topic\' style=\'font-size: 8pt;\'>HP Diagnostics</a> <a href=\'http://www.myloadtest.com/tag/iis/\' class=\'tag-link-64\' title=\'1 topic\' style=\'font-size: 8pt;\'>IIS</a> <a href=\'http://www.myloadtest.com/tag/java/\' class=\'tag-link-44\' title=\'2 topics\' style=\'font-size: 10.27027027027pt;\'>Java</a> <a href=\'http://www.myloadtest.com/tag/java-record-replay/\' class=\'tag-link-54\' title=\'3 topics\' style=\'font-size: 11.783783783784pt;\'>Java Record Replay</a> <a href=\'http://www.myloadtest.com/tag/jdbc/\' class=\'tag-link-30\' title=\'1 topic\' style=\'font-size: 8pt;\'>JDBC</a> <a href=\'http://www.myloadtest.com/tag/loadrunner/\' class=\'tag-link-141\' title=\'25 topics\' style=\'font-size: 22pt;\'>LoadRunner</a> <a href=\'http://www.myloadtest.com/tag/logparser/\' class=\'tag-link-11\' title=\'2 topics\' style=\'font-size: 10.27027027027pt;\'>LogParser</a> <a href=\'http://www.myloadtest.com/tag/monitoring/\' class=\'tag-link-12\' title=\'2 topics\' style=\'font-size: 10.27027027027pt;\'>monitoring</a> <a href=\'http://www.myloadtest.com/tag/mq/\' class=\'tag-link-114\' title=\'1 topic\' style=\'font-size: 8pt;\'>MQ</a> <a href=\'http://www.myloadtest.com/tag/myloadtest/\' class=\'tag-link-53\' title=\'5 topics\' style=\'font-size: 14.054054054054pt;\'>MyLoadTest</a> <a href=\'http://www.myloadtest.com/tag/performance-testing/\' class=\'tag-link-40\' title=\'9 topics\' style=\'font-size: 16.828828828829pt;\'>Performance Testing</a> <a href=\'http://www.myloadtest.com/tag/performance-tuning/\' class=\'tag-link-78\' title=\'1 topic\' style=\'font-size: 8pt;\'>performance tuning</a> <a href=\'http://www.myloadtest.com/tag/quicktest-pro/\' class=\'tag-link-14\' title=\'1 topic\' style=\'font-size: 8pt;\'>QuickTest Pro</a> <a href=\'http://www.myloadtest.com/tag/rational-performance-tester/\' class=\'tag-link-79\' title=\'1 topic\' style=\'font-size: 8pt;\'>Rational Performance Tester</a> <a href=\'http://www.myloadtest.com/tag/rdp/\' class=\'tag-link-72\' title=\'1 topic\' style=\'font-size: 8pt;\'>RDP</a> <a href=\'http://www.myloadtest.com/tag/sap/\' class=\'tag-link-26\' title=\'4 topics\' style=\'font-size: 13.045045045045pt;\'>SAP</a> <a href=\'http://www.myloadtest.com/tag/sapgui/\' class=\'tag-link-15\' title=\'2 topics\' style=\'font-size: 10.27027027027pt;\'>SAPGUI</a> <a href=\'http://www.myloadtest.com/tag/security/\' class=\'tag-link-59\' title=\'13 topics\' style=\'font-size: 18.720720720721pt;\'>security</a> <a href=\'http://www.myloadtest.com/tag/shunra/\' class=\'tag-link-61\' title=\'1 topic\' style=\'font-size: 8pt;\'>Shunra</a> <a href=\'http://www.myloadtest.com/tag/soap/\' class=\'tag-link-29\' title=\'1 topic\' style=\'font-size: 8pt;\'>SOAP</a> <a href=\'http://www.myloadtest.com/tag/sql/\' class=\'tag-link-60\' title=\'1 topic\' style=\'font-size: 8pt;\'>SQL</a> <a href=\'http://www.myloadtest.com/tag/testing/\' class=\'tag-link-76\' title=\'5 topics\' style=\'font-size: 14.054054054054pt;\'>testing</a> <a href=\'http://www.myloadtest.com/tag/training-2/\' class=\'tag-link-73\' title=\'6 topics\' style=\'font-size: 14.936936936937pt;\'>training</a> <a href=\'http://www.myloadtest.com/tag/tsl/\' class=\'tag-link-52\' title=\'2 topics\' style=\'font-size: 10.27027027027pt;\'>TSL</a> <a href=\'http://www.myloadtest.com/tag/unix/\' class=\'tag-link-57\' title=\'1 topic\' style=\'font-size: 8pt;\'>Unix</a> <a href=\'http://www.myloadtest.com/tag/validator/\' class=\'tag-link-132\' title=\'2 topics\' style=\'font-size: 10.27027027027pt;\'>Validator</a> <a href=\'http://www.myloadtest.com/tag/vmware/\' class=\'tag-link-75\' title=\'1 topic\' style=\'font-size: 8pt;\'>VMware</a> <a href=\'http://www.myloadtest.com/tag/vugen/\' class=\'tag-link-23\' title=\'17 topics\' style=\'font-size: 20.108108108108pt;\'>VuGen</a> <a href=\'http://www.myloadtest.com/tag/web-click-and-script/\' class=\'tag-link-65\' title=\'1 topic\' style=\'font-size: 8pt;\'>Web (Click and Script)</a> <a href=\'http://www.myloadtest.com/tag/web-httphtml/\' class=\'tag-link-67\' title=\'3 topics\' style=\'font-size: 11.783783783784pt;\'>Web (HTTP/HTML)</a> <a href=\'http://www.myloadtest.com/tag/webinspect/\' class=\'tag-link-90\' title=\'5 topics\' style=\'font-size: 14.054054054054pt;\'>WebInspect</a> <a href=\'http://www.myloadtest.com/tag/webscarab/\' class=\'tag-link-58\' title=\'1 topic\' style=\'font-size: 8pt;\'>WebScarab</a> <a href=\'http://www.myloadtest.com/tag/windows-sockets/\' class=\'tag-link-70\' title=\'1 topic\' style=\'font-size: 8pt;\'>Windows Sockets</a> <a href=\'http://www.myloadtest.com/tag/winrunner/\' class=\'tag-link-8\' title=\'2 topics\' style=\'font-size: 10.27027027027pt;\'>WinRunner</a> <a href=\'http://www.myloadtest.com/tag/wireshark/\' class=\'tag-link-62\' title=\'1 topic\' style=\'font-size: 8pt;\'>WireShark</a></div> </li> </ul><!-- <ul class="grid-3"> </ul>--> <div class="clear"></div> </div><!--/subfooter-inner--> </div><!--/subfooter--> <div id="footer"> <div id="footer-inner" class="container-12"> <p id="copy">Copyright &copy; 2015 <a href="http://www.myloadtest.com/about/">Stuart Moncrieff</a>.</p> <div class="clear"></div> </div><!--/footer-inner--> </div><!--/footer--> </div><!--/wrapper--> <!--QUIZ_EMBEDER START--> <!--QUIZ_EMBEDER START--> <link rel="stylesheet" href="http://www.myloadtest.com/wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/colorbox/themes/default/colorbox.css" /> <script type="text/javascript" src="http://www.myloadtest.com/wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/colorbox/jquery.colorbox-min.js" ></script> <script type="text/javascript"> jQuery(document).ready(function($){ //Examples of how to assign the ColorBox event to elements $(".colorbox_iframe").colorbox({iframe:true, transition:"elastic", width:"80%", height:"80%", scrolling:true}); }); </script> <!--QUIZ_EMBEDER END--> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-includes/js/comment-reply.min.js?ver=4.3\'></script> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.51.0-2014.06.20\'></script> <script type=\'text/javascript\'> /* <![CDATA[ */ var _wpcf7 = {"loaderUrl":"http:\\/\\/www.myloadtest.com\\/wp-content\\/plugins\\/contact-form-7\\/images\\/ajax-loader.gif","sending":"Sending ...","cached":"1"}; /* ]]> */ </script> <script type=\'text/javascript\' src=\'http://www.myloadtest.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.2.1\'></script> </body> </html> <!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/ Served from: www.myloadtest.com @ 2015-09-12 01:39:49 by W3 Total Cache -->'; my $regex = qr/<td>In Stock<\/td><td><input type="checkbox" name="bookId\[]" value="(.+)"/p; 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