Question about Array-code in Postcode-thread

  • Hello,


    in 2011 there was a question about filtering a postcode/zip-code out of a text (Extract postcode from text string)

    Supermoderator Krishnakumar replied with a function that does the job perfectly.


    He uses the code:


    Ptrn1 is an Array. I don't understand this part. It has several options separated by comma. Does that mean that the text should have one of this combinations?
    Why does he use Array() and why doesn't he use that bij Ptrn2.

    Can someone give me some answers to this, so i learn from it?


    Thanks,

    HenkH