
May 24th, 2012, 04:58 PM
|
 |
Contributing User
|
|
Join Date: Apr 2012
Location: spaceBAR Central
|
|
Just hard code into the regular expression the text that should be found, For example:
Code:
^<p style="font-size:24pt">(.*)</p>$
Assert position at the beginning of the string «^»
Match the characters “<p style="font-size:24pt">” literally «<p style="font-size:24pt">»
Match the regular expression below and capture its match into backreference number 1 «(.*)»
Match any single character that is not a line break character «.*»
Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*»
Match the characters “</p>” literally «</p>»
Assert position at the end of the string (or before the line break at the end of the string, if any) «$»
|