Commit 8d11a189 authored by Toby Hodges's avatar Toby Hodges

fixed solution to exercise 2.3

parent 6dad1878
......@@ -20,7 +20,7 @@ c) `[A-z]` matches all letter characters (both upper and lower case). `[a-Z]` is
#### Exercise 2.3
```
^[^XYM]
chr[^XYM]
```
There are 897 records matching this regular expression. In fact, there are only 895 lines beginning with `chr[^XYZ]`, but two other lines also match the regex above because they contain the string 'chromosome'. To avoid matching these, anchor the regex to the beginning of the line with `^` i.e. `^chr[^MXY]` (see chapter 3).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment