Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Pontus Bolmér
Pontus Bolmér
12,471 Points

Regular expressions

I am matching several postals in the UK

A9 9AA A99 9AA AA9 9AA AA99 9AA A9A 9AA AA9A 9AA

So this is my regexp and it works fine in phpliveregexp preg_match("/^[A-Z]+\d+([A-Z])?\s\d[A-Z]+$/m", $input_line, $output_array);

But when im trying the output in my visual studio code, i just get an empty array. I dont understand!!!!!