There was an error while loading. Please reload this page.
2 parents a650789 + 2aab0a1 commit 592b707Copy full SHA for 592b707
lib/regexp-examples/constants.rb
@@ -35,6 +35,9 @@ module CharSets
35
Lower = Array('a'..'z')
36
Upper = Array('A'..'Z')
37
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!
41
Punct = %w(! " # % & ' ( ) * , - . / : ; ? @ [ \\ ] _ { })
42
Hex = Array('a'..'f') | Array('A'..'F') | Digit
43
Word = Lower | Upper | Digit | ['_']
0 commit comments