Skip to content

Commit 592b707

Browse files
author
Tom Lord
committed
Merge branch 'master' of github.com:tom-lord/regexp-examples
2 parents a650789 + 2aab0a1 commit 592b707

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/regexp-examples/constants.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ module CharSets
3535
Lower = Array('a'..'z')
3636
Upper = Array('A'..'Z')
3737
Digit = Array('0'..'9')
38+
# Note: Punct should also include the following chars: $ + < = > ^ ` | ~
39+
# I.e. Punct = %w(! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \\ ] ^ _ ` { | } ~)
40+
# However, due to a ruby bug (!!) these do not work properly at the moment!
3841
Punct = %w(! " # % & ' ( ) * , - . / : ; ? @ [ \\ ] _ { })
3942
Hex = Array('a'..'f') | Array('A'..'F') | Digit
4043
Word = Lower | Upper | Digit | ['_']

0 commit comments

Comments
 (0)