Regular Expressions

  1. What are Regular Expressions (aka. Regexes)?
  2. What are Regular Expressions good for?
  3. Examples
  4. Where can I use it ?
  5. grep
  6. Regexes first match
  7. Match numbers
  8. Capture
  9. Capture more
  10. Capture even more
  11. findall
  12. findall with capture
  13. findall with capture more than one
  14. Any Character
  15. Match dot
  16. Character classes
  17. Common characer classes
  18. Negated character class
  19. Optional character
  20. Regex 0 or more quantifier
  21. Quantifiers
  22. Quantifiers limit
  23. Quantifiers on character classes
  24. Greedy quantifiers
  25. Minimal quantifiers
  26. Anchors
  27. Anchors on both end
  28. Match ISBN numbers
  29. Matching a section
  30. Matching a section - minimal
  31. Matching a section negated character class
  32. DOTALL S (single line)
  33. MULTILINE M
  34. Two regex with logical or
  35. Alternatives
  36. Grouping and Alternatives
  37. Internal variables
  38. More internal variables
  39. Regex DNA
  40. Regex IGNORECASE
  41. Regex VERBOSE X
  42. Substitution
  43. findall capture
  44. Fixing dates
  45. Duplicate numbers
  46. Remove spaces
  47. Replace string in assembly code
  48. Full example of previous
  49. Split with regex
  50. Exercises: Regexes part 1
  51. Exercise: Regexes part 2
  52. Exercise: Sort SNMP numbers
  53. Exercise: parse hours log file and give report
  54. Exercise: Parse ini file
  55. Exercise: Replace Python
  56. Exercise: Extract phone numbers
  57. Solution: Sort SNMP numbers
  58. Solution: parse hours log file and give report
  59. Solution: Processing INI file manually
  60. Solution: Processing config file
  61. Solution: Extract phone numbers
  62. Regular Expressions Cheat sheet
  63. Fix bad JSON
  64. Fix very bad JSON
  65. Raw string or escape
  66. Remove spaces regex
  67. Regex Unicode
  68. Anchors Other example