I hope this is really simple for someone. I've been working on this for two hours and everything I've done so far is worse than what I was provided in my previous post.
What I want is to return anything at all that's between the colon and the > from a tag.
I don't care if it's symbols, null chars, numbers or anything else.
I want it to find it and return it and let the caller decide what to do with it.
It fails if there are any symbols or space characters in the tag. I haven't tried numbers but eventually I'm going to want to do something like:
<PlaySound: 30,400,25>
This is what I'm using:
Fails are not raised errors. But they don't work.Code:Const STRING_PATTERN As String = "\s*(\w+)\s*>" <SeeSound: Pew> ' Returns Pew. <SeeSound: Pew!> ' Fails. (Returns <SeeSound: Pew!>) <SeeSound: Pew Pew> ' Also fails.
Anyway, if someone who knows what they're doing can sort this for me I will be very grateful.
Thanks.




Reply With Quote