As you probably know, \d+ matches digits. You want the opposite, which conveniently, perl provides as \D. (Note als: \s&\S; \w&\W; etc. ).
So:
print for split /\D+/, "13%22%3%43";; 13 22 3 43
Note: This applies to ASCII/ISO data; once you get into the world of Unicrap, you're on your own :(
In reply to Re: requesting small regex
by BrowserUk
in thread requesting small regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |