O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Regex basics

Mircea Chira computer science general Inglês 34 flashcards

Flashcards do conjunto (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)

Informações

Descrição
computer science general FlashCards sobre Regex basics, criado por Mircea Chira em 03-10-2017.
Criado por
Mircea Chira · out 2017
Atualizado
3 out 2017
Visualizações
1
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?