Myregextester.com is the premier online regular expressions tester that allows visitors to construct, test, and optimize regular expressions.

 Click here to manually set the number of rows for match/replacement textareas. Regex Cheat Sheet Regex Tutorials Regex Book

URL SOURCE:   FILE SOURCE:

MATCH PATTERN:

REPLACEMENT PATTERN:

OPERATION: # # USE .NET FLAGS: i
x
m
s
 Help SHOW MATCH ARRAY:    EXPLAIN:  OPTIMIZE:    SHOW CODE: PHP
ASP
VB.NET
C#.NET
Java
JS
DELIM: HIGHLIGHT MATCHES:      GEN SAMPLES:   
    Save example     Help     FROM: TO: 

PASSWORD RESTRICTIONS:

Allow only these characters:  (any character)  ]
At Least  Total Characters
No More Than   Total Characters
At Least  Lowercase Characters (a-z)
At Least  Uppercase Characters (A-Z)
At Least  Numeric Characters (0-9)
At Least  Special Characters in [^a-zA-Z0-9]  ]
Disallow sequential alphanumeric sequences of or more (i.e. 123... abc... ABC...)
Disallow repeating characters of or more (i.e. 11... aa... AA... %%...)

WORD LIST:



SOURCE TEXT:

HIGHLIGHTED MATCHES:

Select All (to copy etc.)
CAPTURE GROUPS Help
0
 
1

</div> <div class="description"> <h3 class="title"> <a href="/sankt-peterburg/kommercheskaya_nedvizhimost/torgovoe_pomeschenie_245_m_494720689" title="Торговое помещение, 245 м² в Санкт-Петербурге">  Торговое помещение, 245 м²</a> </h3>  <div class="about">735 000 руб. в месяц    </div>

RESULTS:

Select All (to copy etc.)
Execution Time(sec.):
0.000012

Raw Match Pattern:
description\"\>.*?<a.*href\=\"(.*?)\"

PHP Code Example:
 
<?php
$sourcestring="your source string";
preg_match_all('#description\"\>.*?<a.*href\=\"(.*?)\"#m',$sourcestring,$matches);
echo "<pre>".print_r($matches,true);
?>
 

$matches Array:
(
    [0] => Array
        (
            [0] => description"> <h3 class="title"> <a href="/sankt-peterburg/kommercheskaya_nedvizhimost/torgovoe_pomeschenie_245_m_494720689"
        )

    [1] => Array
        (
            [0] => /sankt-peterburg/kommercheskaya_nedvizhimost/torgovoe_pomeschenie_245_m_494720689
        )

)