Regex Cards - Keynote Format

1,006 views

Published on

Deck for studying up on regular expressions.

This was purposefully kept free of any styling etc as this is the actual deck I use for memorization and don't like distractions.

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,006
On SlideShare
0
From Embeds
0
Number of Embeds
39
Actions
Shares
0
Downloads
31
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Regex Cards - Keynote Format

    1. 1. Regex syntax
    2. 2. /pattern/options Regex syntax
    3. 3. A single character: a, b, or c
    4. 4. [abc] A single character: a, b, or c
    5. 5. Any single character but a, b, or c
    6. 6. [^abc] Any single character but a, b, or c
    7. 7. Any single character in the range a-z
    8. 8. [a-z] Any single character in the range a-z
    9. 9. Any single character in the range a-z or A-Z
    10. 10. [a-zA-Z] Any single character in the range a-z or A-Z
    11. 11. Start of line
    12. 12. ^ Start of line
    13. 13. End of line
    14. 14. $ End of line
    15. 15. Start of string
    16. 16. A Start of string
    17. 17. End of string
    18. 18. z End of string
    19. 19. Any single character
    20. 20. . Any single character
    21. 21. Any whitespace character
    22. 22. s Any whitespace character
    23. 23. Any non-whitespace character
    24. 24. S Any non-whitespace character
    25. 25. Any digit
    26. 26. d Any digit
    27. 27. Any non-digit
    28. 28. D Any non-digit
    29. 29. Any word character (letter, number, underscore)
    30. 30. w Any word character (letter, number, underscore)
    31. 31. Any non-word character
    32. 32. W Any non-word character
    33. 33. Any word boundary character
    34. 34. b Any word boundary character
    35. 35. Capture everything enclosed
    36. 36. (...) Capture everything enclosed
    37. 37. a or b
    38. 38. (a|b) a or b
    39. 39. Zero or one of a
    40. 40. a? Zero or one of a
    41. 41. Zero or more of a
    42. 42. a* Zero or more of a
    43. 43. One or more of a
    44. 44. a+ One or more of a
    45. 45. Exactly 3 of a
    46. 46. a{3} Exactly 3 of a
    47. 47. 3 or more of a
    48. 48. a{3,} 3 or more of a
    49. 49. Between 3 and 6 of a
    50. 50. a{3,6} Between 3 and 6 of a
    51. 51. Case insensitive option.
    52. 52. i Case insensitive option.
    53. 53. Case insensitive option.
    54. 54. i Case insensitive option.
    55. 55. make dot match newlines
    56. 56. m make dot match newlines
    57. 57. ignore whitespace in regex
    58. 58. x ignore whitespace in regex
    59. 59. www.rubular.com Credit for content and a great tool for practicing.

    ×