Re: [PHP] Regular expressions

2006-10-16 Thread Morten Twellmann
Great! It works! Thank you very much. Also thanks to all the other guys who answered. I also think I finally started to understand these regular expressions a bit better. - Morten - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: Morten Twellmann [EMAIL PROTECTED] Cc: php

[PHP] Regular expressions

2006-10-14 Thread Morten Twellmann
to my homepage I tried with: preg_match('h1\b[^]*(.*?)/h1', h1Welcome to my homepage/h1, $matches, PREG_OFFSET_CAPTURE); print_r($matches); but got nothing... Can anyone tell me how to do this? (I tried the above expression in EditPad Pro 6 and it worked...!) Sincerely, Morten Twellmann