If clipboard contains number between x and y perform an action?

You're welcome, but you need to provide us with the COMPLETE requirements for what you want to do, rather than just giving us a small piece at a time. That wastes our time and yours.

So, please step back and provide us with:

  1. Real-world source text as you will be receiving it, that you want to process in some way.
  2. Real-world results of exactly what you want to get after processing.
  3. The rules for processing.

Please provide all example text in a Forum Code Block.

Finally, please read:
Tip: How Do I Get The Best Answer in the Shortest Time?