Skip to content

Commit

Permalink
Tests for \w, \W, \d and \D.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Aug 23, 2012
1 parent 564768b commit 2b0173e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions t/p5regex/rx_metachars
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,11 @@ b \N \n abc\ndef y not logical newline (\N)
[a-b] | [b-e] c y alternation (|)
[a-b] | [d-e] c n alternation (|)
[a-d]+ | [b-e]+ bcd y alternation (|)
a\w+f a=[ *f n word character
a\w+f abcdef y word character
a\W+f a&%- f y not word character
a\W+f abcdef n not word character
a\d+f abcdef n digit
ab\d+cdef ab42cdef y digit
a\D+f abcdef y not digit
a\D+f ab0cdef n not digit

0 comments on commit 2b0173e

Please sign in to comment.