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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -