63 regular expressions found in this category!
Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
href=[\"\']?((?:[^>]|[^\s]|[^"]|[^'])+)[\"\']? |
Description |
This will match just about everything after href=
Its good if you just need a list of all the href= values |
Matches |
href="http://www.google.com/tsunami_relief.html" | href=/preferences?hl=en | href="ht |
Non-Matches |
src=blah blah |
Author |
Rating:
Not yet rated.
Chris Richards
|
Title |
Test
Details
Pattern Title
|
Expression |
(^[a-zA-Z][a-zA-Z0-9_]*)|(^[_][a-zA-Z0-9_]+) |
Description |
This pattern can be used for validating a string as a valid element name (e.g. variable or class name) in Microsoft .NET. See also http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vbconelementnames.asp |
Matches |
var | _withunder_score99 | TeSt |
Non-Matches |
_ | 123abc | 9 |
Author |
Rating:
Not yet rated.
Howard Richards
|
Title |
Test
Details
Pattern Title
|
Expression |
<a[\s]+[^>]*?href[\s]?=[\s\"\']+(.*?)[\"\']+.*?>([^<]+|.*?)?<\/a> |
Description |
This regex will extract the link and the link title for every a href in HTML source. Useful for crawling sites.
Note that this pattern will also allow for links that are spread over multiple lines. |
Matches |
<a href='http://www.regexlib.com'>Text</a> | <a href="...">Text</a> |
Non-Matches |
all other html tags |
Author |
Rating:
Not yet rated.
Jacek Sompel
|
Displaying page
of
pages;
Items to