Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
dev:technologies [2011/04/22 03:20] – [XPath] make it a more real doc ajlyon | dev:technologies [2017/12/07 13:42] – bwiernik | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | A very brief introduction to some commonly used technologies | + | Three commonly-used technologies in [[dev: |
- | ====== XPath ====== | + | ==== CSS Selectors |
- | XPath provides a way to refer to specific parts of HTML or XML documents. It's usually the best way to extract data from webpages when writing a translator. | + | A comprehensive and accessible resource is available from W3Schools: |
+ | https://www.w3schools.com/ | ||
- | An XPath expression is a chain of pieces that specify the path to a node of the document. | + | The Mozilla Development Network (MDN) also provides a CSS Selector resource:\\ |
+ | https:// | ||
- | * ''/'' | + | ==== XPath ==== |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * Plus much more. See the [[http:// | + | |
- | The best introduction to XPath for use in translators | + | A tutorial |
+ | https://www.liquid-technologies.com/xpath-tutorial | ||
- | === Examples | + | ==== Regex ==== |
- | <code html> | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | < | + | |
- | <tr class=" | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | For the sample document above, these expressions would refer to... | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | ====== Regular Expressions ====== | + | There are many high-quality regex tutorials available online. A comprehensive guide is provided all in one page at:\\ |
- | * '' | + | https:// |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * '' | + | |
- | * ''?'' | + | |
+ | Regex 101 also provides a useful platform for testing regex structures: | ||
+ | http:// |