109

Regular Expressions
Pattern Matching Exercise 1

  • Using only the knowledge that you have gained in the course to this point, try the following exercise:


    Exercise
    1. Run the example "pat0" as follows: pat0 < pat.dat
    2. Copy the example "pat0" into a new script called "pat1".
    3. Make "pat1" skip blank lines and #-comment lines.

    Start

    Solution