(?<=new int\[]{)(?<index1>\d\d)(?:\, (?<indexSuite>\d\d))+}\, new string\[]{"(?<mot1>.+?)(?:", "(?<motSuite>.+?))+"}
http://regexstorm.net/tester?p=%28%3f%3c%3dnew+int%5c%5b%5d%7b%29%28%3f%3cindex1%3e%5cd%5cd%29%28%3f%3a%5c%2c+%28%3f%3cindexSuite%3e%5cd%5cd%29%29%2b%7d%5c%2c+new+string%5c%5b%5d%7b%22%28%3f%3cmot1%3e.%2b%3f%29%28%3f%3a%22%2c+%22%28%3f%3cmotSuite%3e.%2b%3f%29%29%2b%22%7d&i=private+static+readonly+TextConstant+Text001+%3d+new+TextConstant%28new+int%5b%5d%7b01%2c+02%7d%2c+new+string%5b%5d%7b%22C%27est+la+premi%c3%a8re+%2201%22+ligne+%22%2c+%22Test02%22%7d%29%0d%0a%0d%0aprivate+static+readonly+TextConstant+Text002+%3d+new+TextConstant%28new+int%5b%5d%7b01%2c+02%2c+03%7d%2c+new+string%5b%5d%7b%22Test01%22%2c+%22Test02%22%2c+%22C%27est+la+%7b3%7d+ligne%22%7d%29
http://regexstorm.net/tester?p=%28%3f%3c%3dnew+int%5c%5b%5c%5d%5c%7b%29%28%5cd%5cd%29%28%5c%2c+%28%5cd%5cd%29%29%2b&i=private+static+readonly+TextConstant+Text001+%3d+new+TextConstant%28new+int%5b%5d%7b01%2c+02%7d%2c+new+string%5b%5d%7b%22C%27est+la+premi%c3%a8re+%2201%22+ligne+%22%2c+%22Test02%22%7d%29%0d%0a%0d%0aprivate+static+readonly+TextConstant+Text002+%3d+new+TextConstant%28new+int%5b%5d%7b01%2c+02%2c+03%7d%2c+new+string%5b%5d%7b%22Test01%22%2c+%22Test02%22%2c+%22C%27est+la+%7b3%7d+ligne%22%7d%29
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionEt regexstorm est un site de test ou de démonstration qui utilise le moteur de regex .Net, il y a quelques différences d'implémentation d'un langage à l'autre.
Comme précédemment, pour voir le résultat, il faut afficher l'onglet "Table" et dérouler les sous captures pour la 2eme ligne.