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

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -