mask

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hello,

I have got some string:
test = "12aaa-cc-xxx"

and I need it compere with this mask:
mask = xxxx-xxx-xx-00

where x menas anything and 0 is needed

how can I do somethnig like this:
if test correspond mask then is True

Tom
 
Hello Tom,

If you are only checking the last two characters of the string, you ca
test it this way.

If Right(Test, 2) = "00" Then Result = True


Hope this helps,
Leith Ros
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top