1 / 8

EXAKT Regular Expressions

EXAKT Regular Expressions. Content. Regular Expressions Examples Metasymbols and syntax. Regular Expressions. Patterns for describing sets of symbol strings with the help of meta symbols and a predefined syntax Purpose: find strings in larger strings / texts. Examples.

xandy
Download Presentation

EXAKT Regular Expressions

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EXAKT Regular Expressions

  2. Content Regular Expressions Examples Metasymbols and syntax

  3. Regular Expressions Patterns for describing sets of symbol strings with the help of meta symbols and a predefined syntax Purpose: find strings in larger strings / texts

  4. Examples The words this, that, those and these and their capitalized variants [Tt]h(is|at|ose|ese) Words starting with in and ending in able or ably (e.g. indisputable, indescribably, ineffable, indistinguishable etc.) \bin[a-z]+abl[ey]\b All sequences of three words followed by a question mark, i.e. the last three words of questions (\b[A-Za-z]+\b){3,3}\?

  5. Meta symbols and syntax Examples: B[ui]rma matches „Burma“ and „Birma“ M[ae][iy]er  matches „Maier“, „Mayer“, „Meyer“, „Meier“, Symbols and symbol classes:

  6. Meta symbols and syntax Important!!! \w  matches letters of the English alphabet, no extensios of the Latin alphabet Instead: [A-Za-zÄäÖöÜüß]for the German alphabet Predefined symbol classes (selection):

  7. Meta symbols and syntax Examples: [A-K]\w+  matches words with capital initial A-K \d{1,2}\.\d{1,2}\.\d{2,4}  matches dates (14.11.1971) Quantifiers:

  8. Meta symbols and syntax Beispiele: \.  matches a period [Dd](er|ie|as)  matches German definite articles [a-z0-9-_\.]+@[a-z0-9-_\.]+\.\w{2,3}  matches email adresses Other metasymbols (selection):

More Related