Collection of regular expressions used when parsing
Parser
01 Syntax
02 Methods
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| CssProperties | 1 | Extracts properties and values from a Css property block; e.g. |
| CssComments | 1 | Extracts CSS style comments; e.g. |
| CssAtRules | 1 | Extracts CSS at-rules; e.g. |
| CssMediaTypes | 1 | Extracts the media types from a media at-rule; e.g. |
| CssBlocks | 1 | Extracts defined blocks in CSS. |
| CssNumber | 1 | Extracts a number; e.g. |
| CssPercentage | 1 | Extracts css percentages from the string; e.g. |
| CssLength | 1 | Extracts CSS lengths; e.g. |
| CssColors | 1 | Extracts CSS colors; e.g. |
| CssLineHeight | 1 | Extracts line-height values (normal, numbers, lengths, percentages) |
| CssBorderStyle | 1 | Extracts CSS border styles; e.g. |
| CssBorderWidth | 1 | Extracts CSS border widthe; e.g. |
| CssFontFamily | 1 | Extracts font-family values |
| CssFontStyle | 1 | Extracts CSS font-styles; e.g. |
| CssFontVariant | 1 | Extracts CSS font-variant values; e.g. |
| CssFontWeight | 1 | Extracts font-weight values; e.g. |
| CssFontSize | 1 | Exracts font sizes: xx-small, larger, small, 34pt, 30%, 2em |
| CssFontSizeAndLineHeight | 1 | Gets the font-size[/line-height]? on the font shorthand property. |
| HtmlTag | 1 | Extracts HTML tags |
| HmlTagAttributes | 1 | Extracts attributes from a HTML tag; e.g. |
04 Members
String, String)Extracts matches from the specified source
| Name | Type | Description |
|---|---|---|
regex | String | Regular expression to extract matches |
source | String | Source to extract matches |
Collection of matches
String, String)Searches the specified regex on the source
| Name | Type | Description |
|---|---|---|
regex | String | - |
source | String | - |
String, String, Int32)Searches the specified regex on the source
| Name | Type | Description |
|---|---|---|
regex | String | - |
source | String | - |
Extracts properties and values from a Css property block; e.g. property:value;
Extracts CSS style comments; e.g. / comment /
Extracts CSS at-rules; e.g. @media print { block1{} block2{} }
Extracts the media types from a media at-rule; e.g. @media print, 3d, screen {
Extracts defined blocks in CSS. WARNING: Blocks will include blocks inside at-rules.
Extracts a number; e.g. 5, 6, 7.5, 0.9
Extracts css percentages from the string; e.g. 100% .5% 5.4%
Extracts CSS lengths; e.g. 9px 3pt .89em
Extracts CSS colors; e.g. black white #fff #fe98cd rgb(5,5,5) rgb(45%, 0, 0)
Extracts line-height values (normal, numbers, lengths, percentages)
Extracts CSS border styles; e.g. solid none dotted
Extracts CSS border widthe; e.g. 1px thin 3em
Extracts font-family values
Extracts CSS font-styles; e.g. normal italic oblique
Extracts CSS font-variant values; e.g. normal, small-caps
Extracts font-weight values; e.g. normal, bold, bolder...
Exracts font sizes: xx-small, larger, small, 34pt, 30%, 2em
Gets the font-size[/line-height]? on the font shorthand property. Check http://www.w3.org/TR/CSS21/fonts.html#font-shorthand
Extracts HTML tags
Extracts attributes from a HTML tag; e.g. att=value, att="value"