lundi 24 juillet 2017

Regex Between Brackets

I have a string like this:

<random stuff between><random stuff between><random stuff between><random stuff between>

I already can match this string using this Regex Pattern :

  if (Regex.IsMatch(arg, "^(<.+>){4}$"))
                return true;

But How can I get the content between the brackets, by also using Regex?

Aucun commentaire:

Enregistrer un commentaire