Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tom-lord/regexp-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Lord committed Feb 28, 2015
2 parents a650789 + 2aab0a1 commit 592b707
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/regexp-examples/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ module CharSets
Lower = Array('a'..'z')
Upper = Array('A'..'Z')
Digit = Array('0'..'9')
# Note: Punct should also include the following chars: $ + < = > ^ ` | ~
# I.e. Punct = %w(! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \\ ] ^ _ ` { | } ~)
# However, due to a ruby bug (!!) these do not work properly at the moment!
Punct = %w(! " # % & ' ( ) * , - . / : ; ? @ [ \\ ] _ { })
Hex = Array('a'..'f') | Array('A'..'F') | Digit
Word = Lower | Upper | Digit | ['_']
Expand Down

0 comments on commit 592b707

Please sign in to comment.