Regex.Match Extract pattern matches from string

  • Thread starter Thread starter Shan1986
  • Start date Start date
S

Shan1986

Guest
Hallo,

I am trying to extract matched patterns from string using regex. For example my string is "123[xxy],sdf[zzx],fdf[xxx]" and i want to extract the contents inside the square brackets ( var1= xxy, var2=zzx, var3=xxx). Every string will contain up to maximum of 3 square brackets . How do i do it?


Thanks

Continue reading...
 
Back
Top