Take the 2-minute tour ×

On the following two strings I'd like to create a regular expression that returns the binding property and value for the visibility binding.

In this string I would want to get back: visible:visible()


In this string I would want to get back: visible:propertyIsVisible()


In this string I would want to get back: visible:properties.visibilityProperty

"visible:properties.visibilityProperty, click:clickMe"

Any regexperts out there have a good suggestion for getting this using a regular expression?

share|improve this question
visible:[^,]+ ? –  darkmist Feb 29 '12 at 17:11
add comment

1 Answer

up vote 1 down vote accepted

What about something like this?

share|improve this answer
you rock dude, works like a charm –  KodeKreachor Feb 29 '12 at 17:32
add comment

Your Answer


