I'm new to regex in general. What is the best way to remove a string inside of < >.<string>body<string>
Asked
Active
Viewed 135 times
-1

Kirikaz
- 1
- 3
-
@kirikaz add an example, please. – Roman Patutin Feb 15 '19 at 05:11
-
var input = "Text
"; var output = Regex.Replace(input, @" ?\<.*?\>", string.Empty); – kAsdh Feb 15 '19 at 05:18
1 Answers
2
You can use this
<[^>]+>
<
- Matches<
[^>]+
- Match anything except>
. one or more time.>
- Matches>
.

Code Maniac
- 37,143
- 5
- 39
- 60