- 1. Regular Expressions in Perl
- 2. Regular Expressions I
- 2.1. What are regexes good for ?
- 2.2. Examples
- 2.3. Where can I use it ?
- 2.4. Introduction to Regexes
- 2.5. grep
- 2.6. Tools
- 2.7. Find a string in a file
- 2.8. Regex Examples: single character
- 2.9. Regex Examples: more characters
- 2.10. Regex Examples dot .
- 2.11. Regex Examples (character class)
- 2.12. Regex Examples (^ in character class)
- 2.13. Optional character
- 2.14. Regex Examples quantifiers
- 2.15. Quantifiers
- 2.16. Quantifiers on character classes
- 2.17. Exercises: Regular expressions
- 2.18. Solutions: Regular expressions
- 3. Regular Expressions II
- 3.1. Grouping, alternatives
- 3.2. Capturing
- 3.3. Anchors
- 3.4. Character classes
- 3.5. Special character classes
- 3.6. Exercise: Hex/Oct/Bin
- 3.7. Exercise: Number
- 3.8. Exercise: Roman numbers
- 3.9. Solution: Number
- 3.10. Solution: Hex/Oct/Bin
- 3.11. Solution: Roman numbers
- 4. Regular Expressions
- 4.1. Regexp::Common
- 4.2. Options and modifiers
- 4.3. /i Case sensitivity
- 4.4. Matching quotes
- 4.5. /s single line
- 4.6. /m multiple lines
- 4.7. /x enable white spaces and comments
- 4.8. Substitute
- 4.9. Global substitute
- 4.10. Greedy quantifiers
- 4.11. minimal match
- 4.12. Replace spaces
- 4.13. Replace string in assembly code
- 4.14. Full example of previous
- 4.15. split with regular expression
- 4.16. Fixing dates
- 4.17. Exercise: split CGI
- 4.18. Exercise: basename/dirname
- 4.19. Exercise: Sort SNMP numbers
- 4.20. Exercise: parse hours log file and give report
- 4.21. Exercise: Parse ini file
- 4.22. Exercise: parse perl file
- 4.23. Solution: Split CGI
- 4.24. Solution: filename/dirname
- 4.25. Solution: Sort SNMP numbers
- 4.26. Solution: parse hours log file and give report
- 4.27. Solution: Parse ini file
- 4.28. Solution: parse perl file
- 5. Regular Expressions Cheat sheet