Jump to content
Xtreme .Net Talk

pasu857

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by pasu857

  1. I am trying to capture all the X, Y and X_x (those are just examples). I want to capture all the content in between those "__". Sorry for the confusion.
  2. I am trying to get Regex to match something like this: __X__Y__ __X_x__Y__ etc in particular, I want the content between those "__", so in the first example I will get X and Y, while in the second example I should get "X_x" and Y. So far I have got to the following Regex: Regex X = new Regex(@"__(?<object>[\w]+?)__"); This match __X__ and __X_x__, etc, and I can refer the content through the group name "object". But I don't know how to go on from there. Is there someone out there that can point me in the right direction? Many Thanks.
×
×
  • Create New...