dimanche 28 juin 2015

Regex Match qustion

I want to match this pattern: [k1,v1][k2,v2]...

k1...kn cannont be empty while v1...vn can be.

[k,v] can apear more than 1 time.

I wrote this but it ain't work: ^(?=\[).+(?<!\]),.*(?<!\[)(?<=\])$

Aucun commentaire:

Enregistrer un commentaire