Regex to match a string like ababba etc

Write an expression to match strings like a, aba, ababba, ababbabbba, etc. The number of consecutive b increases one by one after each a.

I’m learning regex and struggling with this regex quiz for several days but still could quite get i…

PHP PCRE – get city from address

I need to get from a full address the last words it contains, after the postal code (which should always be in the same order).
An example of an address:
Av. Elias Garcia (em frente ao Restaurante Pote) Palhais 2815-233 Charneca da Caparic…