Like others, I find the wording of your question quite confusing.
However, I did recall a similar sounding question from some time ago. You might find my answer or one of the other approaches in the thread of use to you.
In reply to Re: Need version regex
by BrowserUk
in thread Need version regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |