asp.net - Get String with Specific Tags in C# -


i'm looking way strings string specific tags, e.g. have string: "hello <date> <name> <your name>" need return this: <date> <name> <your name>

in array or list

only words starts , ends <>.

thanks million! :-)

you can use regex pattern <.*?> retrieve each word, ie

matchcollection matches = regex.matches(input, "<.*?>"); 

you can iterate on collection tags.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -