in reply to is this a regexp question ?

Hi
Sorry for not getting back sooner.
OK, a practical example of what I want to do. Lets say that every letter in the following string represents a number from 0 to 100 or whatever.
$thisstring = "abjdkwosyksljadfkjadfaduifalkdjfaslflksdf";
now lets say that the letter H represents some function, I would want

$thisstring =~ /H/;

to match all the sequences of 5 or fewer numbers that were equal to 10. Clearly writing the function H is trivial in this instance, and I would be able just to go shooting through the string and compute this without recourse to a regexp but for more complex examples (where for example there are gaps between them), eg 3 numbers less than 10 followed by any 5 numbers followed by 4 numbers equal in sum to 10 - stuff like that.
Am I talking rubbish or can perl offer me a shortcut to doing this ?
Thanks
Specimen