RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Browse Expressions by Category

63 regular expressions found in this category!

Expressions in category: Markup/Code

Change page:   |    Displaying page 4 of 4 pages; Items 61 to 63
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&gt
Non-Matches
all other html tags
Author Rating: Not yet rated. Jacek Sompel
Change page:   |    Displaying page 4 of 4 pages; Items 61 to 63

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials