110

Regular Expressions
Pattern Matching Exercise 2

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


    Exercise
    1. Run the example "pat1" as follows: pat1 < pat.dat
    2. Copy the example "pat1" into a new script called "pat2".
    3. Make "pat2" print only 2nd address lines (Hint: they contain a ",")

    Start

    Solution