0

I have addresses with this format:

Rebweg 10A, 8309 Nürensdorf

With preg_replace I want to extract a clean postal code: 8309

Anyone please suggest a working regex?

Thanks.

ChrisF
  • 127,439
  • 29
  • 243
  • 315
medk
  • 8,175
  • 16
  • 48
  • 71
  • 2
    It looks like you are looking to create a regex, but do not know where to get started. Please check [Reference - What does this regex mean](https://stackoverflow.com/questions/22937618) resource, it has plenty of hints. Also, refer to [Learning Regular Expressions](https://stackoverflow.com/questions/4736) post for some basic regex info. Once you get some expression ready and still have issues with the solution, please edit the question with the latest details and we'll be glad to help you fix the problem. – Wiktor Stribiżew Nov 03 '20 at 12:03

0 Answers0