String Tokenizer? Parse strings like %Var1% - %Var2%-%Var3%?

  • Thread starter Thread starter Lucas Tam
  • Start date Start date
L

Lucas Tam

Hello,

Does anyone know of a VB.NET class that can parse a string based on an
input mask? I would like to parse a string like:

%Filename% - %Date%-%Number%

Of course the format of the string could change like:

FillerText%Filename% - %Date%-%Number%.zip

In which case, FillerText and .zip would be ignored and only the variables
would be extracted?

I was hoping someone would have some code or know of a component that does
this sort of thing... it seems like something very common.

Would Regular Expressions work too?

Thanks.
 

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