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

Please support RegExLib Sponsors

Hosting Spotlight

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
</?([a-zA-Z][-A-Za-z\d\.]{0,71})(\s+(\S+)(\s*=\s*([-\w\.]{1,1024}|"[^"]{0,1024}"|'[^']{0,1024}'))?)*\s*>
Description
Searches for tags and there atributes according to the HTML 2.0 specification to limit length of tags to 72 characters, and length of attribute values to 1024 characters.
Matches
<IMG src='stars.gif' alt="space" height=1>
Non-Matches
this is not a tag
Author Rating: Not yet rated. Lewis Moten
Title Test Details Pattern Title
Expression
</?(\w+)(\s*\w*\s*=\s*("[^"]*"|'[^']'|[^>]*))*|/?>
Description
Matches HTML of XML tags, with or without attributes (single-, double-, or non-quoted), closing tags, or self-closing singleton tags.
Matches
<font color="blue"> | </font> | <br />
Non-Matches
this is a test...
Author Rating: Not yet rated. Jean-Philip Losier
Title Test Details Pattern Title
Expression
<blockquote>(?:\s*([^<]+)<br>\s*)+</blockquote>
Description
Use this regular expression pattern to get the string1, string2, string3 .... from &lt;blockquote&gt;string1&lt;br&gt;string2&lt;br&gt;string3&lt;br&gt;&lt;/blockquote&gt;
Matches
<blockquote>string1<br>string2<br>string3<br></blockquote>
Non-Matches
..
Author Rating: Not yet rated. Waheed Khan
Change page:   |    Displaying page 4 of 4 pages; Items 61 to 63

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