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

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -