I want to match the string
11 with a regular Expression in SAS. The
11 can be preceded by zero or more 0 and/or by white spaces. Any other character is not allowed. Likewise, if anything there should only be white spaces following the
Match: 0000011 11 11<space><space> No Match: 115 400011
So far, I am using
/^[\s|0+]11\s*$/ . It works, but I was wondering if there is an approach that is more straightforward?