c# - Regex starting with a string -
i want filter following string regular expressions:
test^ab^^house-1234~str2255
i wanna string "house-1234"
, i've test string beginning "test^ab^^"
, ending "~"
.
can please me how regex should like?
string input = "test^ab^^house-1234~str2255"; var matches = regex.matches(input, @"test\^ab\^\^(.+?)~").cast<match>() .select(m => m.groups[1].value) .tolist();
Comments
Post a Comment