RE: [PHP] regexp questions
| From: | Ashley Sheridan | Date: | Tue, 11 May 2010 20:43:54 +0000 |
| Subject: | RE: [PHP] regexp questions | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305097@lists.php.net to get a copy of this message | ||
On Tue, 2010-05-11 at 22:45 +0200, Spud. Ivan. wrote:
>
> I think we've not so much only with the regex, but maybe you can tell me somethin helpful
> ;)
>
> /Word1:<\/a><\/h4>\(<a
> href=\"http:\/\/www.thiswebsite.com\/some-script..php\">fir.*?st
> word.*?(.*)Word2:<\/a><\/h4><ul>(.*)Second
> word:<\/a><\/h4><ul>(.*)Word3:<\/a><\/h4><ul>(.*)rd word/is
>
> Thanks.
> I.Lopez.
>
> >>>>>>
> On 05/11/2010 09:56 AM, Spud. Ivan. wrote:
> >
> > But it doesn't explain why my regexps work fine within php 5.1 but 5.3
> >
> > Ivan.
> >
>
> Post a regex and what you think it should match but doesn't.
>
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> _________________________________________________________________
> Disfruta de Messenger y Hotmail en tu BlackBerry ¡Hazlo ya!
> http://serviciosmoviles.es.msn.com/messenger/blackberry.aspx
What are you trying to match the regex against?
Also, I've noticed you've used a lot of periods (.) where it looks like
you intended a literal period to be matched. In regular expressions,
periods match any character expect the newline, so "www.thiswebsite.com"
would also match the string "www_thiswebsite_com".
Ps, please try not to top post, as it disrupts the zen flow of the
list! :)
Thanks,
Ash
http://www.ashleysheridan.co.uk