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
Post a Comment