Title |
Test
Find
BBCode Hyperlink Locator
|
Expression |
(\[url=?"?)([^\]"]*)("?\])([^\[]*)(\[/url\]) |
Description |
This expression locates all BBCode style hyperlinks and breaks out the URL and linked text components. The URL attribute can be double-quoted or not, or not present at all. URL attributes (if present) are at $2, linked text is at $4. |
Matches |
[url=http://www.web.com]link text[/url], [url="http://www.web.com"]link text[/url], [url=banana]link text[/url] |
Non-Matches |
[url=http://www.web.com]link text, [url=http://www.web.com"][/url], [url][/url], [url="http:www.web.com"]some text[url] |
Author |
Rating:
Not yet rated.
Doug Vanderweide
|
Source |
|
Your Rating |
|