How to do the pattern?

  • Thread starter Thread starter yxq
  • Start date Start date
Y

yxq

Hello,
I want to get the strings that match c*.txt ( * means asterisk wildcard)
from some strings below:

c1234.txt
1234.txt
a1234.exe
cqwer.txt
casd.txt

I want to use regular or function, do not want to use if....then...
How to do?

Thank you
 
yxq said:
I want to get the strings that match c*.txt ( * means asterisk wildcard)
from some strings below:

c1234.txt
1234.txt
a1234.exe
cqwer.txt
casd.txt

I want to use regular or function, do not want to use if....then...

Check out the documentation of VB's 'Like' operator.
 

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