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 = '/\/\*[\s\S]*?\*\//'; $str = '@charset "utf-8"; * { margin: 0; padding: 0; } html { padding:0px; margin:0px; overflow-y: scroll;} body { background-color:#fff; margin:0; padding:0; text-align:center; font:normal 13px Arial, Helvetica, sans-serif; color:#575757; } img {border:0;} /* main */ .main { width:100%; padding:0; margin:0 auto; } .text_pane {} .text_pane ul {margin:0; margin-top:5px; margin-bottom:5px; padding:0; padding-left:15px;} .text_pane img {margin-bottom:15px;} .center_pane .text_pane { font-size:100%; text-align: left; margin:0; padding:0; padding-left:20px; padding-right:20px; line-height:20px; } .text_pane { padding-left:30px; padding-right:30px; } .center_pane .text_pane p { margin:0; padding:0; margin-top:5px; margin-bottom:5px; text-align: justify; line-height:20px; } /* RIGHT pane */ .wright { width:400px; float:left; border:1px solid #bbb; background-color:#fff; margin-top: 20px; margin-left:20px; margin-bottom:10px; padding:20px; } .wright p {margin:0px; padding:0;} /* RIGHT PANE */ .right_pane { float: right; width:260px; margin-top:5px; padding-left: 20px; padding-bottom: 20px; padding-right:20px; } .right_pane ul li {list-style:none;} .buttons_reg_eval {width:200px; margin-top:25px; margin-right:8px; cursor:pointer;} /* BREAD CRUMBS*/ #crumbs, #crumbs a { float:left; text-align:left; margin: 0; padding: 0; padding-left: 18px; width:auto; height:35px; font:normal 12px/32px Arial, Helvetica, sans-serif; text-decoration:none; color:#565656; } #crumbs span { display:block; float:left; margin-top:3px;} #crumbs a {padding: 3px; } #crumbs a:hover {color:#BC470C; text-decoration:underline;} .crumb{ float: left; } #crumbs { margin: 0 30px 0 20px; overflow: hidden; padding: 0px; } .crumbs-container{ width: 150%; } .crumbs-arrow-next{ background: url(/images/main/next.png) repeat scroll 0 0 transparent; cursor: pointer; margin-bottom: -12px; position: relative; top: 13px; width: 12px; height: 12px; display: none; } .crumbs-arrow-prev{ margin-bottom: -12px; position: relative; right: -15px; display: none; cursor: pointer; -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"; background: url(/images/main/next.png) repeat scroll 0 0 transparent; position: relative; top: 13px; width: 12px; height: 12px; display: inline; } .dots-next { background: none repeat scroll 0 0 #FFFFFF; float: left; margin-left: -30px; padding: 0 2px; position: relative; top: 10px; display: none; } .dots-prev { display: none; float: left; left: 28px; position: relative; top: 11px; padding: 0 2px; background: none repeat scroll 0 0 #FFFFFF; } /* Print Link */ #content {position:relative;} #print_link { margin: 0; padding: 0; width:20px; height:26px; } #print_link a {display:block; position:absolute; top:13px; right:0; text-align:right; margin: 0; padding: 0; margin-right:10px; width: 16px; height: 16px; background-position: -258px 0; background-image: url(../images/sprites/sprite.png); font:normal 12px/12px Arial, Helvetica, sans-serif; line-height:32px; text-decoration:none; color:#565656; text-shadow:1px 1px #fff; } /* LEFT pane */ .wleft { width:400px; height:300px; float:left; line-height: 22px; text-align: justify; margin-left: 70px;} .calendar {background:url(../images/main/calendar_bg.gif) no-repeat top left; } .calendar .data {float:left; font-weight:bold; margin-left:8px; line-height:26px; } .calendar .event {float:right; margin-right:8px; line-height:26px; margin-bottom:10px; } .calendar p {text-align:left; text-align: justify; margin-bottom:20px; clear:both;} ul.banner li {list-style: none outside none; padding-bottom: 10px;} ul.banner li img {width: 200px; border:1px solid #ddd;} /* LEFT/RIGHT MENU */ .left_menu, .right_menu { font-size:12px; margin:0; padding:0; } .left_menu ul, .right_menu ul { margin: 0; padding: 0; width: 100%; list-style: none; text-align:left; background-color:#fff; margin-bottom:10px; } .left_menu ul li, .right_menu ul li { margin-top:0px; padding-left:10px; padding-right:4px; border-bottom: 1px solid #E7E7E7; line-height: 25px; display:block; } .left_menu ul li.top, .right_menu ul li.top { background-color: #F3F3F3; border-bottom: 1px solid #CCCCCC; font-size: 12px; font-weight: bold; text-align: center; text-transform: uppercase; } .left_menu ul li.subtitle, .right_menu ul li.subtitle { margin: 0; } .left_menu ul li a, .right_menu ul li a { display:block; text-decoration:none; outline: none; padding-top:5px; padding-bottom:5px; padding-right:15px; color: #7D7D7D; line-height: 15px; } .right_menu ul li.subtitle a {color:#383838;} .left_menu ul li.subtitle a:hover, .right_menu ul li.subtitle a:hover { } .left_menu ul li a:hover, .right_menu ul li a:hover{ text-decoration:none; } .left_menu ul li.subtitle a, .right_menu ul li.subtitle a { color: #005784; font-size: 12px; font-weight: bold; outline: medium none; text-shadow: 1px 1px 1px #FFFFFF; } .right_menu ul li a.title_link {background:none; padding-right:5px;} .right_menu ul li a .date {color:#000;} .right_menu ul li a .title {font-size:100%;} .right_menu ul li a .type {display:block; color:#086999; font-size:100%; /*border-bottom: 1px solid #ddd;*/ padding-bottom:3px; margin-right:5px;} .left_menu ul li:hover { background-color: #EDF8FF; } .right_menu ul li:hover {background-color: #EDF8FF; } .left_menu ul li.subtitle:hover {background-color: #EDF8FF; } .right_menu ul li.subtitle:hover {background-color: #EDF8FF; } .left_menu ul li a:hover, .right_menu ul li a:hover {color:#000;} .right_menu ul li.subtitle {background-image:none;} .right_menu ul li.subtitle a {background-image:none; } .right_menu ul li.top { } /* for support portal*/ span.support_menu_top {display:block; width:100%; height:100%;} /*************footer**********/ #footer_center { width:auto; height:32px; background-color:#fff; margin:0 auto; padding:0; margin-top:20px; margin-left:15px; margin-right:15px; border-top:1px solid #eee; } #footer { height:32px; font:bold 12px Arial, Helvetica, sans-serif; line-height:28px; } #footer_bg { float:right; color:#005784; min-width:100px; height:32px; text-align:right; } #footer_bg a {color:#005784; padding:7px; text-decoration:none;} #footer_bg a:hover, #feedback a:hover {color:#B54800; text-decoration:underline;} #copyright {float:left; color:#aaa; font:normal 12px Arial, Helvetica, sans-serif; line-height:28px; margin-left:5px; } .flags {float:right; margin:0; padding:0; margin-top:4px; margin-right:3px;} /* FORMS */ input.submit { background-image: url("../images/forms/button.gif"); background-color: transparent; border: medium none; width: 160px; height: 34px; float: right; cursor: pointer; color: #702D00; text-shadow: 1px 1px #F7C175; font-size: 15px; line-height: 34px; text-align: center; margin-left: 3px; padding-bottom: 4px; cursor:pointer; } p.clr, .clr, fieldset.change_password div.clear { clear:both; height:0px; padding:0; margin:0; background:none;} /*TABLES */ /* configurations */ table { width:100%; border-collapse:collapse; margin: 0 auto; margin-bottom:10px; } th, td { border:1px solid #E9E9E9; text-align:left; padding-top: 2px; padding-bottom: 2px; padding-left: 5px; padding-right: 5px; vertical-align:middle; } td { border:1px solid #E9E9E9; } thead th { background:#E9E9E9; text-align:center; font-weight:bold; color:#565656;} td.category {background-color:#F2F2F2; font-weight:bold;} /*support*/ table.cases {margin-top:10px; } table.cases tr:nth-child(odd) {background-color:#F3F3F3;} table.cases tr:hover {background-color:#FFF9E1;} th, th a, th.caseid, th.product, th.status, th.date, th.resolution, th.view { text-align:center; color:#2C3547; font-weight:bold; vertical-align:middle; } table.cases th a {display:block; width:100%; line-height:20px;} /* PRODUCTS */ .product, .simple_product, .solution_category { margin-top: 20px; margin-right:1px; padding-right:30px; } .product p {min-height:135px;} .text_pane img.product_top_img {margin: 6px 0 0;} #products_categ_0 {float: left; margin-right: 1px; padding-right: 30px; width: 420px;} .simple_product img, #products_categ_0 img, #products_categ_1 img {float:left;} .product { float:left; width:420px; min-height:100px; } .product h2, .simple_product h2, .product h2 a, .simple_product h2 a, .solution_category h2{ display:block; font:normal 22px/20px Arial, Helvetica, sans-serif; font-weight:bold; color:#565656; text-align:left; text-transform: none; text-decoration:none; margin:0px; margin-bottom:5px; text-shadow: 1px 1px 1px #ccc; clear:none; } .solution_category h2 a{color:#565656;text-decoration: none;} .product img, .simple_product img {border:0; margin-right:10px; margin-bottom:5px;} .product a, .simple_product a, .solution_category a { display: inline;} .product a.list_features, .simple_product a.list_features, .product a.list_solutions, .simple_product a.list_solutions { display: block; float:left; width:45%; color: #BC470C; background: url(\'../images/submenu/arrowsb.gif\') no-repeat scroll 130px 11px #F6F6F6; border: 1px solid #ECEBEB; border-bottom: 2px solid #787878; margin:0; padding: 5px; padding-left: 10px; text-decoration:none; text-shadow: 1px 1px 1px #ddd; position:relative; outline: none; margin-right:2px; margin-bottom:2px; } .product_brochure_image {margin-right: 10px; margin-bottom:20px;} td.prod_categ_full_name {clear: left; color: #565656; background-color: #F2F2F2; font: bold 12px/24px Arial,Helvetica,sans-serif; text-shadow: 1px 1px 1px #FFFFFF; text-transform: uppercase; margin: 0; padding: 0 0 0 10px; text-align: left; vertical-align: middle;} td.prod_categ_icon {width: 40px; border-right: medium none; text-align:center;} td.prod_categ_prod_name {width: 95px; text-align: center; vertical-align: middle; border-left: medium none; text-align:left;} td.prod_categ_links {width: 110px; padding:5px;} td.prod_categ_icon a {float:left; padding-left:10px;} td.prod_categ_icon a img {padding: 0; margin: 0;} a.product_name_link {font-size: 15px; font-weight: bold; color:#565656; text-decoration:none;} /* SOLUTIONS */ .solution_category div.product_list { display: block; float:left; width:45%; color: #BC470C; background-color: #fdfdfd; border: 1px solid #ECEBEB; border-bottom: 2px solid #787878; margin:0; padding: 5px; padding-left: 10px; text-decoration:none; text-shadow: 1px 1px 1px #ddd; margin-right:2px; margin-bottom:2px; } .solution_category div.product_list {width:100%;} .product a.list_solutions:hover, .simple_product a.list_solutions:hover, .solution_category a.list:hover, .product a.list_features:hover, .simple_product a.list_features:hover { color:#00A1E5; text-decoration:underline; background-image: url(\'../images/submenu/arrowsb_hover.gif\'); } div.solution_category div.text {width:60%; float:left; padding-right:20px;} div.solution_category div.links {width:30%; float:left;} div.solution_category div.links a {display:block; line-height:21px;} .simple_product {width:95%; } .solution_category {width:95%;} img {margin:0; padding:0; margin-top:0px;} img.main_solution_image {margin-top:6px;} h1.solution_title {margin-bottom:0;} h1.solution_title a {clear: left; color: #016B94; font: bold 20px/30px Arial,Helvetica,sans-serif; margin: 0 0 20px; padding: 0 0; text-align: left; text-shadow: 1px 1px 1px #DDDDDD; vertical-align: middle; text-decoration:none;} #products_info_edu {width:100%; height:100%; margin:0; padding:0; padding-top:4px;} #products_info_edu .left {width: 30px; height:25px; float:left;} #products_info_edu .right{ width: 140px; margin:0; padding:0;} #products_info_edu .right_sol_all{ float:left; width:110px;} #products_info_edu .left img { width:24px; height:24px;} #products_info_edu a {font-weight:bold; border:none; margin:0; padding:0;} #products_info_edu p { font-size:11px; line-height:14px; margin:0; padding:0; } #products_info {width:100%; height:100%; margin:0; padding:0; padding-top:7px;} #products_info .left {width: 30px; height:40px; float:left;} #products_info .right{ float:left; width: 140px; margin:0; padding:0;} #products_info .right_sol_all{ float:left; width:110px;} #products_info .left img { width:24px; height:24px;} #products_info a {font-weight:bold; border:none; margin:0; padding:0;} #products_info p { font-size:11px; line-height:14px; margin:0; padding:0; } img.solution_small_image {float:left; padding-right:10px; margin-top:10px;} div.solution_description {float:left; width:330px; margin-top:5px; text-align: justify;} div.solution_description span {text-align: justify;} div.clear {clear:both;} a.solutions_more {color: #016B94; text-decoration:none;} a.more {color: #016B94; text-decoration:underline;} /*.text_pane */ div.text_pane p, div.text_pane ul { line-height:20px; text-align:left;} h1 { font:bold 24px Arial, Helvetica, sans-serif; line-height:30px; color:#016B94; text-align:left; vertical-align:middle; margin:0; padding:0; margin-bottom:20px; padding-top:0px; padding-bottom:0px; text-shadow: 1px 1px 1px #ddd; clear:left; } h1.below_buttons {margin-top:15px; } /*.text_pane */ h2 { font:bold 18px/28px Arial, Helvetica, sans-serif; line-height:22px; color:#565656; text-align:left; vertical-align:middle; text-transform: none; margin:0; padding:0; margin-top: 25px; margin-bottom:10px; text-shadow: 1px 1px 1px #eee; clear:left; } h3 { color:#565656; font:bold 16px/28px Arial, Helvetica, sans-serif; line-height:22px; text-shadow: 1px 1px 1px #eee; margin:0; padding:0; margin-top: 20px; margin-bottom:10px; clear:left; } h4 { color:#565656; font:bold 14px/28px Arial, Helvetica, sans-serif; line-height:22px; text-shadow: 1px 1px 1px #eee; margin:0; padding:0; margin-top: 10px; margin-bottom:5px; clear:left;} a {color:#016B94;} a:hover {color:#7D0001;} a.link{ color: #BC470C; margin:0; padding: 5px; padding-left: 0px; text-decoration:underline; text-shadow: 1px 1px 2px #ddd; margin-right:2px; margin-bottom:2px; font-size:12px; padding-bottom:10px; } a.link:hover { color:#BC470C; } .crumbs, .crumbs_arrow {width: 6px; height: 7px; background-image: url(../images/sprites/sprite.png); background-position: -16px 0; background-repeat: no-repeat; margin:0; padding:0; margin-top:12px; margin-left:3px; margin-right:3px;} .crumbs_arrow {float:left; margin-top:15px;} .solution_ajax, .features_ajax { width: 206px; position: absolute; top:32px; left:-1px; z-index:98; margin:0; padding:0;} /* configurations */ #configurations_table {margin-top:10px;} #configurations_table th, #configurations_table td {padding:3px; padding-left:10px; line-height:18px;} #configurations_table th, #configurations_table td.category {line-height:18px; padding-top:5px; padding-bottom:5px;} td.mf_description {width:70%; line-height:28px; } td.mf_edition_option {font-size:12px; text-align:center;} td.mf_edition_option img {margin:0; padding:0;} a.hide_edition {font-size:10px; cursor:pointer; line-height:14px; color:#565656;} .mf_description_invisible { display:none; } .mf_description_visible { display:block; line-height: 20px; font-size:13px; color:#737373;} /* University Program Overview*/ #university_table {margin-top:20px;} #university_table th, #university_table td {padding:3px; padding-left:10px; line-height:18px;text-align:center;} #university_table th, #university_table td.category {line-height:18px; padding-top:5px; padding-bottom:5px;} #university_table td.centered {text-align:center;} #university_table td.leftcentered {text-align:left;} #university_table a.main_small_button, #university_table a.main_small_highlighted_button, #university_table a.wide_button {margin:0 auto;} #university_table img {margin:0; padding:0; padding-right:5px;} /* top marketing features list */ ul.mf_list, div.mf_descriptions { margin:0; padding:0; margin-top:10px; } ul.mf_list { margin-right:-2px;} ul.mf_list {width:200px; float:left; list-style: none; line-height:18px; } ul.mf_list li { padding:5px; background-color:#f2f2f2; border-top:1px solid #f2f2f2; border-bottom:1px solid #E2E2E2; } ul.mf_list li.active { border:none; background-color:#fff; border-top:1px solid #ddd; border-bottom:1px solid #ccc;} ul.mf_list li a { display:block; font-size:13px; text-decoration:none;} ul.mf_list li a:hover { text-decoration:underline;} ul.mf_list li.active a {color:#BC470C;} ul.mf_list li.active a:hover {text-decoration:none; } div.mf_descriptions {width:424px; float:left; background-color:#fff; padding:0px; padding-left:15px; } .feature_description {display:none; } .feature_description_visible {height:100%; display:block; padding:5px; } /* static page - IP Products */ table.styledTable { border-collapse: collapse;} table.styledTable td, table.styledTable th { padding: 2px; padding-left:10px; border: solid 1px #ccc;} table.styledTable td{ padding: 3px;} table.styledTable th{ background: #989797; padding-top: 3px; padding-bottom: 3px; color:#2C2C2C;} table.styledTable tr.section{ background: #DADADA; font-weight: normal; color: #2C2C2C;} tr.section div.panelCollapsible{ height: 1.3em; cursor: pointer;} div.panelCollapsible div.collapsibleHeader{ float: left;} div.panelCollapsible div.imgCollapse, div.panelCollapsible div.imgExpand{ width: 13px; height: 13px; float: right; margin-top: 2px; margin-right: 2px;} table.styledTable .altRow, table.styledTable .spotRow { background: #FFFFFF;} #admin_header {height:80px;} .partners img {padding:10px;} #links_icons {width:60px; height:20px; position:absolute; top:10px; right:25px;} /* Eval License Request page*/ #help {width:100%;} #help h2 {margin:0; padding:0; margin-top:5px; } #help h4 {color:#000; margin:0; padding:0; margin-top:5px; } #help h3 {margin:0; padding:0; margin-top:5px; color:#0087CA; font-size:12px;} #help p, #help div, #help ol, #help ol li {font-size:11px; line-height:15px;} #help p { margin:0; padding:0;} hr {margin:0; padding:0;} /* Configurations */ #mfoption_description {text-align:left; margin:0; padding:0; padding-left: 10px;} /* Downloads */ #downloads_versions { padding-top:30px; } #downloads_versions img.legend_img {} #downloads_versions span.downloads_legend { width:300px; line-height:30px; } tr.tr_category td {cursor:pointer; width:100%; } .library_show { display:table-row;} .library_hide {display:none;} .downloads_box p.file_description {display:block; padding-left:30px; padding-right:30px; text-transform:none; font-weight:normal;} /* solutions */ div.solutions_pane table, div.solutions_pane table tr, div.solutions_pane table tr td {border:1; border-color:#ffffff; padding:0; margin:0; vertical-align:top;} div.solutions_pane table tr td {padding:10px;} div.solutions_pane hr {height:3px; border:0px; background: url("/images/main/hr.gif") repeat-x scroll 0 0 #3E98C5;} /* solutions vendor flow */ div.solutions_pane table.solutions_flow, div.solutions_pane table.solutions_flow tr, div.solutions_pane table.solutions_flow tr td {border:1; border-color:#e9e9e9; padding:0; margin:0; vertical-align:middle;} div.solutions_pane table.solutions_flow tr td {padding:4px;} /*webinars*/ .webinar_description {padding:5px 10px;} /*Share buttons*/ .share_button {margin: 2px; padding: 2px; float: left;} .share_button a{text-decoration: none; color: #444; border: 0; display: block; width: 61px; height: 20px; background-image: url(../images/sprites/sprite.png); background-repeat: no-repeat;} #share {float: right; width: auto; padding: 0 3px;} #share a ,#share a:hover,#share a:visited{color: #226; text-decoration: none;} #share_buttons {display: none; z-index: 50; position: absolute; right: 0px; top: 20px; background: #EFEFEF; border: solid 1px #DDD; border-radius: 5px; -moz-border-radius: 5px; box-shadow: 2px 2px 3px #888; opacity: 1; height: auto; width: 140px; padding: 7px;} .share-digg { background-position: -83px 0; } .share-linkedin { background-position: -79px -37px; } .share-twitter { background-position: -61px -178px; } .share-facebook { background-position: -205px -17px; } .share-google-plus { background-position: 0 -37px; } .share-slashdot { background-position: 0 -178px; } .share-delicious { background-position: -22px 0; } .share-email { background-position: -144px 0; } .share-share { width: 50px; height: 18px; display: block; background-position: -162px -37px; background-repeat: no-repeat; background-image: url(../images/sprites/sprite.png); background-repeat: no-repeat; } a.more_link { font-size:12px; color:#9B9B9B; background: url("/images/main/arrow.png") no-repeat scroll 28px 0px transparent; text-decoration:none; border-bottom:1px solid #ccc;} .link_on_dark a {color: #fff;} a.pdf {background: url(/images/main/pdf_icon.png) center right no-repeat; padding-right: 18px;} /* Product Pages - right menu*/ #right_menu {float: left; margin: 30px 0 0 18px; width: 162px;} #right_menu ul {margin:0; padding:0; border:1px solid #ddd;} #right_menu ul li {list-style: none outside none; margin:0; padding:0 12px 0 10px; } #right_menu ul li.noborder a{ border:none;} #right_menu ul li a { display:block;color: #565656; font: 13px/16px Arial,Helvetica,sans-serif; text-decoration:none; padding-top:8px; padding-bottom:8px; padding-right:5px; padding-left:30px; border-bottom: 1px solid #ddd;} #right_menu ul li a.hightlighted {color: #005784; font: bold 13px/22px Arial,Helvetica,sans-serif;} #right_menu ul li a.downloads {background: url("/images/content/icons/icon_download.gif") no-repeat scroll left 4px transparent; font-weight:bold; color: #005784;} #right_menu ul li a.what {background: url("/images/content/icons/icon_whats_new.gif") no-repeat scroll left 4px transparent;} #right_menu ul li a.config {background: url("/images/content/icons/icon_config.gif") no-repeat scroll left 4px transparent;} #right_menu ul li a.datasheet {background: url("/images/content/icons/icon_whats_new.gif") no-repeat scroll left 4px transparent;} #right_menu ul li a.news {background: url("/images/content/icons/icon_news.gif") no-repeat scroll left 4px transparent;} #right_menu ul li a.training {background: url("/images/content/icons/icon_training.gif") no-repeat scroll left 4px transparent;} #right_menu ul li a.multimedia {background: url("/images/content/icons/icon_multimedia.gif") no-repeat scroll left 4px transparent;} #right_menu ul li a.documentation {background: url("/images/content/icons/icon_doc.gif") no-repeat scroll left 4px transparent;} #right_menu ul li a.contact {background: url("/images/content/icons/icon_contact.gif") no-repeat scroll left 4px transparent;} #right_menu ul li a.faq {background: url("/images/content/icons/icon_faq.gif") no-repeat scroll left 4px transparent;} #right_menu ul li a:hover { color:#000;} /* Custom menu used on Solution pages */ #custom_menu {float:right; margin: 0 0 0 0; width: 162px;} #custom_menu ul {margin:0; padding:0; border:1px solid #ddd;} #custom_menu ul li {list-style: none outside none; margin:0; padding:0 12px 0 10px; } #custom_menu ul li.noborder a{ border:none;} #custom_menu ul li a { display:block;color: #565656; font: 13px/16px Arial,Helvetica,sans-serif; text-decoration:none; padding-top:8px; padding-bottom:8px; padding-right:5px; padding-left:30px;} #custom_menu ul li a.hightlighted {color: #005784; font: bold 13px/22px Arial,Helvetica,sans-serif;} #custom_menu ul li a.downloads {background: url("/images/content/icons/icon_download.gif") no-repeat scroll left 4px top 12px transparent; font-weight:bold;} #custom_menu ul li a:hover { color:#000;} #products_pane {float: left; width: 535px;} #products_pane h1 { clear: left; color: #565656; font: bold 18px/22px Arial,Helvetica,sans-serif; margin: 25px 0 10px; padding: 0; text-align: left; text-shadow: 1px 1px 1px #EEEEEE; text-transform: none; vertical-align: middle; } ul#featuredResBlock {padding: 0;} ul#featuredResBlock li.featured { background-color: #F3F3F3; border-bottom: 1px solid #CCCCCC; font-size: 12px; font-weight: bold; text-align: center; text-transform: uppercase; line-height: 25px;} ul#featuredResBlock {border:1px solid #ddd;} ul#featuredResBlock img { margin-bottom: 5px; margin-top: 5px;} .featuredCateg {color: #005784; font-weight: bold;} li.fCategDelim span {/*border-top: 1px solid #ddd; */display: block; } #right_menu ul li.featuredCateg { padding-top:5px;} #right_menu ul li.featuredRes a {text-align: left; font-size: 13px; line-height: 18px; margin: 0; padding:0; padding-top:5px; padding-bottom:5px; } #right_menu ul li.noline a {border-bottom: none;} /* products overview page */ td.prod_categ_links {padding-left:10px; padding-right:10px;} td.prod_categ_description {padding-left:15px; padding-right:15px;} td.prod_categ_links a.product_link { color: #7D7D7D; display: block; line-height: 15px; outline: medium none; padding-bottom: 5px; padding-left: 10px; padding-top: 5px; text-decoration: none; border-top:1px solid #ddd; } td.prod_categ_links a.product_link:hover {background-color:#EDF8FF; color:#000;} td.prod_categ_links a.read_more {border:none;} td.prod_categ_links a.eval {color: #005784; font-size: 12px; font-weight: bold; outline: medium none; text-shadow: 1px 1px 1px #FFFFFF;} a.arcive_builds_link { font-weight:bold; display:block; border:1px solid #eee; text-align:left; margin-right:40px; padding-left:10px; padding-top:4px; padding-bottom:4px;} ul.checkbox_list {margin-left:100px; } ul.checkbox_list li{ width: 116px; list-style:none; height:18px; float:left; padding:0;} fieldset.register_form div span.input_text ul.checkbox_list input {float:right; width:10px; padding:0; margin:0;} fieldset.register_form div span.input_text ul.checkbox_list label {float:left; width:88px; height:20px; line-height:20px;} .highlighted_text {color:#7D0001 !important; font-weight: bold;} /*Connect with us widget*/ .connectwithus_widget {margin: 20px 0;} .connectwithus_flags {float: left;} .connectwithus_title {display: block; font-size: 14px; font-weight: bold; text-align: left;}'; 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