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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -