GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Regex basics

Mircea Chira computer science general Englisch 34 Karten

Karten in diesem Stapel (34)

  1. 1^Start of string or line
  2. 2$End of string or line
  3. 3\AStart of input (ignores 'm' flag)
  4. 4\ZEnd of input (ignores 'm' flag)
  5. 5\GEnd of the previous match
  6. 6\bWord boundary (any position proceeded or followed - but not both - by a letter, digit or unders­core)
  7. 7\BNon-word boundary
  8. 8\nNew line
  9. 9\rCarriage return
  10. 10\tTab
  11. 11\vVertical tab
  12. 12\fForm feed
  13. 13*Zero or more
  14. 14+One or more
  15. 15?Zero or One (i.e. optional)
  16. 16{n}Exactly 'n' (any number)
  17. 17{n,}Minimum ('n' or more)
  18. 18{n,m}Range ('n' or more, but less or equal to 'm')
  19. 19\wWord
    [a-zA-­Z0-9_]
  20. 20\WNon-word
    [^a-zA­-Z0-9_]
  21. 21\dDigit
    [0-9]
  22. 22\DNon-digit
  23. 23\sWhitespace (Form-­feed, tab, vertic­al-tab, new line, carriage return and space)
    [\f\t­\x0b\n\r ]
  24. 24\SNon-wh­ite­space
  25. 25\xHexade­cimal digit
    \x00=null; \x0d=\r; [\x61-­\x7­a]=­[a-z]
  26. 26\OOctal digit
  27. 27.Any character (except new line \n)
  28. 28(...)Capture group - captures a set of characters for a later expression
  29. 29(?:...)Non-ca­pture group - groups an expression but does not capture. e.g. /((?:f­oo|­fu)­bar)/ matches "­foo­bar­" or "­fub­ar" without "­foo­" or "­fu" appearing as a captured subpattern
  30. 30(?=...)Lookahead - match on the characters following. e.g. /ab(?=c)/ match "­ab" only when followed by "­c"
  31. 31(?!...)Negative lookahead - match on characters that aren't following. e.g. /ab(?!c)/ match "­ab" only when NOT followed by "­c"
  32. 32(?<­=...)Positive look-b­ehind assertion. e.g. /(?<=f­oo)bar/ matches "­bar­" when preceded by "­foo­"
  33. 33(?<­!...)Negative look-b­ehind assertion. e.g. /(?
  34. 34(?#...)Comment e.g. (?# This comment is ignored entirely)

Informationen

Beschreibung
computer science general Karteikarten am Regex basics, erstellt von Mircea Chira am 03/10/2017.
Erstellt von
Mircea Chira · Okt 2017
Aktualisiert
3 Okt 2017
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck