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.
 
Back
Top