Help for writing a regex

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
Forum Newbie
Posts: 1
Joined: Mon Apr 07, 2014 5:41 am

Help for writing a regex

Post by sapoczka »

Hello everybody...

I'm completely new in regex using but I need help for creating one that will recognized that type:


Help me please!!!

User avatar
Posts: 6425
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Help for writing a regex

Post by Celauran »

Ugly, but this'll do it.

Code: Select all

There's probably a more elegant regex you can come up with. Take a look at Rubular.
Forum Newbie
Posts: 4
Joined: Sat Dec 20, 2014 6:38 pm

Re: Help for writing a regex

Post by regexer »

Code: Select all

^((\{(\(\d,\d\),?)+(?<!,)\},?)+)$ online regular expression composer based on text analysis
Post Reply