Title |
Test
Find
Pattern Title
|
Expression |
<(?<tag>.*).*>(?<text>.*)</\k<tag>> |
Description |
Match the content of any regular tag/s |
Matches |
<body>Content here</body> |
Non-Matches |
<body>Content here<body> |
Author |
Rating:
luca milan
|
Source |
<(?<tag>.*).*>(?<text>.*)</\k<tag>> |
Your Rating |
|
Title: Dot-star allowing for too much backtracking
Name: Darren Neimke
Date: 10/13/2003 6:28:29 PM
Comment:
A lot of that .* stuff that you've got in there will lead to unneccessary backtracking and therefore, quite a bit of inefficiency. Try to reduce it, maybe something more along the lines of:
<(?<tag>\b\w+\b)[^>]*>(?<text>.*?)</\k<tag>>