The input is a string like

asdfsa: asdfdsf=asdfjk34l534jkjf45345; sdfsdf; sdfsdfdsf

How to extract what is between the characters " = " and " ; "?

Trying to do this:

 string x = Regex.Match(z, @"\=([^=;]*)\;").Groups[0].Value; 

Works, but includes limiters.

  • one
    Try this: "\=(.*)\;" - jmu 4:02 pm


1 answer 1

Read the value from Groups[1].Value . Groups[0] is the entire expression.