New topic Closed topic
avatar image
1
Get all matches from Regex expression
By Created , last editted

Hello,

I have this regex:


mmatch(var:adress[locations][0][address], '([^,]*,[^,]*,[ ]|\d+)', 1)


and here is an example of the string:


Terpstraat 27b, Wieringerwerf, Noord-Holland 1771, Netherlands


I have bolded the parts that match this regex.

this expression will only get the first bolded part. How to get them both.

I tried to place an 2 instead of 1 at the end of the regex and 1/2 but its not working?


thnx


Hello,

I have this regex:


mmatch(var:adress[locations][0][address], '([^,]*,[^,]*,[ ]|\d+)', 1)


and here is an example of the string:


Terpstraat 27b, Wieringerwerf, Noord-Holland 1771, Netherlands


I have bolded the parts that match this regex.

this expression will only get the first bolded part. How to get them both.

I tried to place an 2 instead of 1 at the end of the regex and 1/2 but its not working?


thnx

Answers
Sort by:

This topic is closed.