c# - regex match pattern in a string multiple times -
this question has answer here:
i have following string "*&abc=123&**&defg=hh&*" , on pattern start , end && , have following when regex.matches or regex.split
first match = &abc=123& 2 match = &defg=hh&
appreciate help
&[0-9a-za-z]+=[0-9a-za-z]+&
you may need change [0-9a-za-z] depending on characters want allow.
& matches characters & literally [0-9a-za-z]+ match single character present in list below quantifier: + between 1 , unlimited times, many times possible, giving needed [greedy] 0-9 single character in range between 0 , 9 a-z single character in range between , z (case sensitive) a-z single character in range between , z (case sensitive) = matches character = literally [0-9a-za-z]+ match single character present in list below quantifier: + between 1 , unlimited times, many times possible, giving needed [greedy] 0-9 single character in range between 0 , 9 a-z single character in range between , z (case sensitive) a-z single character in range between , z (case sensitive) & matches characters & literally