| Title |
Test
Find
Pattern Title
|
| Expression |
target[ ]*[=]([ ]*)(["]|['])*([_])*([A-Za-z0-9])+(["])* |
| Description |
Matches the HTML "target" attribute. I had an editor that edited pages but whe wysiwyg editor would break on link that had a target to say "_top" or another window. So I needed an expression to match the target attribute on links in HTML. |
| Matches |
target = "_top" | target = _top | target = "foo" |
| Non-Matches |
target foo | target "foo" | target = "" |
| Author |
Rating:
Phil Cogbill
|
| Source |
|
| Your Rating |
|
Title: Updated for single quote matching (was missing end single quote) and empty targets (ex. " ")
Name: Dale
Date: 8/29/2006 11:31:26 PM
Comment:
target[ ]*[=]([ ]*)(["]|['])*([_])*([A-Za-z0-9])*(["]|['])*