I\'d like to extract elements beginning with digits from a character vector but there\'s something about POSIX regular expression syntax that I don\'t understand.
I
Try
grep(pattern="[[:digit:]]", x=vec)
instead as the 'meta-patterns' between colons usually require double brackets.