![]() |
![]() |
|||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
Regular Expressions (advanced) |
![]() |
|||||||||||||||||||||||||
|
Regular Expressions are used in various places throughout Rapid Meta-Tags to allow those who understand them far greater control over how the application runs. It is beyond the scope of this help file to explain exactly how regular expressions work, but there are certain conventions used in Rapid Meta-Tags that you should know about. You can learn about Microsoft .NET regular expressions from Microsoft's Regular Expression Guide User Defined RegionsUser-Defined Regions regular expressions have two basic conventions you should be aware of: Name:A named construct called "name" will assign a name to the Region. Example: <!-- MyComment name="(?<name>.*?)" -->.*?<!-- EndComment --> Content:A named construct called "content" will assign only that content to the Region. A regular expression without this construct will assign the entire match to the Region. Example: <!-- MyComment -->(?<content>.*?)<!-- EndComment --> Author Meta-TagThe author meta-tag allows you to extract the Author from the page using a regular expression. It uses just one convention: Author:A named construct called "author" will assign only that content to the Author. A regular expression without this construct will assign the entire match to the Author. Example: <p class="author">Written By: (?<author>[^<]*)</p>
|
|
|||||||||||||||||||||||||
|
© copyright 2005 cornishweb.com dog care supplies | Google XML sitemaps | automatic meta-tag generator |
||||||||||||||||||||||||||