Regular Expressions

  1. Regexp::Common
  2. Options and modifiers
  3. /i Case sensitivity
  4. Matching quotes
  5. /s single line
  6. /m multiple lines
  7. /x enable white spaces and comments
  8. Substitute
  9. Global substitute
  10. Greedy quantifiers
  11. minimal match
  12. Replace spaces
  13. Replace string in assembly code
  14. Full example of previous
  15. split with regular expression
  16. Fixing dates
  17. Exercise: split CGI
  18. Exercise: basename/dirname
  19. Exercise: Sort SNMP numbers
  20. Exercise: parse hours log file and give report
  21. Exercise: Parse ini file
  22. Exercise: parse perl file
  23. Solution: Split CGI
  24. Solution: filename/dirname
  25. Solution: Sort SNMP numbers
  26. Solution: parse hours log file and give report
  27. Solution: Parse ini file
  28. Solution: parse perl file
  29. Regular Expressions Cheat sheet