Help for this page

Select Code to Download


  1. or download this
    print "- " =~ /\s*\p{Dash}\s*/;    # 1
    print "- " =~ /\s*\p{Dash}{1}\s*/; # 2
    print "- " =~ /\s*-\s*/;           # 3
    
  2. or download this
    Compiling REx "\s*\p{Dash}\s*"
    synthetic stclass "ANYOF[\11\12\14\15 ][{unicode_all}+utf8::Dash]".
    ...
    Contradicts stclass... [regexec_flags]
    Match failed
    Freeing REx: "\s*\p{Dash}\s*"