c# - Match vertical slash -
how can match vertical slash | in regular expression
i've trying match content "1|2|3|4|" regex expression
"(<group1>.*?)|.*?|.*?|(<group2>.*?)|
i'd in first group value 1 , in second 4 regular expression not working
what have close, remove question marks. asterisks match 0 or more there's not need question marks.
the \ escapes |. you're missing couple slashes. should like:
(<group1>.*)\|.*\|.*\|(<group2>.*)\| and you'll need add @ sign in front of string declaration c# take literal text.
@"backslash\all day"
Comments
Post a Comment