From: "Ford, Mike" on


> -----Original Message-----
> From: Spud. Ivan. [mailto:spudmixe(a)hotmail.com]
> Sent: 11 May 2010 15:56
> To: php-general(a)lists.php.net
> Subject: RE: [PHP] regexp questions
>
>
>
> hehe, but I can't find anything related to regexp. I've found
> something at http://php.net/preg_match
> Changelog

Try searching for pcre:

Version 5.3.2
Upgraded bundled PCRE to version 8.00.

Version 5.3.0
Upgraded bundled PCRE to version 7.9.

Version 5.2.13
Upgraded bundled PCRE to version 7.9.

Version 5.2.9
Fixed bug #44336 (Improve pcre UTF-8 string matching performance).

Version 5.2.7
Upgraded PCRE to version 7.8

Version 5.2.6
Upgraded PCRE to version 7.6

Version 5.2.5
Upgraded PCRE to version 7.3

Version 5.2.4
Upgraded PCRE to version 7.2

Version 5.2.2
Upgraded PCRE to version 7.0

Version 5.2.0
Updated PCRE to version 6.7

.... so it looks like between PHP 5.1 and 5.3.2 you have at least 2 major version upgrades of the PCRE library, so the previously referenced http://www..pcre.org/changelog.txt is more than likely what you need to be looking at.

Cheers!

Mike
--
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,
Leeds Metropolitan University, C507, Civic Quarter Campus,
Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom
Email: m.ford(a)leedsmet.ac.uk
Tel: +44 113 812 4730





To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
From: "Spud. Ivan." on



> Subject: RE: [PHP] regexp questions
> Date: Wed, 12 May 2010 11:11:07 +0100
> From: M.Ford(a)leedsmet.ac.uk
> To: spudmixe(a)hotmail.com; php-general(a)lists.php.net
>
>
>
> > -----Original Message-----
> > From: Spud. Ivan. [mailto:spudmixe(a)hotmail.com]
> > Sent: 11 May 2010 15:56
> > To: php-general(a)lists.php.net
> > Subject: RE: [PHP] regexp questions
> >
> >
> >
> > hehe, but I can't find anything related to regexp. I've found
> > something at http://php.net/preg_match
> > Changelog
>
> Try searching for pcre:
>
> Version 5.3.2
> Upgraded bundled PCRE to version 8.00.
>
> Version 5.3.0
> Upgraded bundled PCRE to version 7.9.
>
> Version 5.2.13
> Upgraded bundled PCRE to version 7.9.
>
> Version 5.2.9
> Fixed bug #44336 (Improve pcre UTF-8 string matching performance).
>
> Version 5.2.7
> Upgraded PCRE to version 7.8
>
> Version 5.2.6
> Upgraded PCRE to version 7.6
>
> Version 5.2.5
> Upgraded PCRE to version 7.3
>
> Version 5.2.4
> Upgraded PCRE to version 7.2
>
> Version 5.2.2
> Upgraded PCRE to version 7.0
>
> Version 5.2.0
> Updated PCRE to version 6.7
>
> ... so it looks like between PHP 5.1 and 5.3.2 you have at least 2 major version upgrades of the PCRE library, so the previously referenced http://www.pcre.org/changelog.txt is more than likely what you need to be looking at.
>
> Cheers!
>
> Mike
> --
> Mike Ford,
> Electronic Information Developer, Libraries and Learning Innovation,
> Leeds Metropolitan University, C507, Civic Quarter Campus,
> Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom
> Email: m.ford(a)leedsmet.ac.uk
> Tel: +44 113 812 4730
>
>
>
>
>
> To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm


Thank you very much, this was very useful ;)

I. Lopez.


_________________________________________________________________
¿Quieres conocer trucos de Windows 7? ¡Los que ya lo usan te los cuentan!
http://www.sietesunpueblodeexpertos.com/index_windows7.html
From: "Spud. Ivan." on




> Date: Tue, 11 May 2010 15:38:41 -0700
> From: lists(a)cmsws.com
> To: spudmixe(a)hotmail.com
> CC: php-general(a)lists.php.net
> Subject: Re: [PHP] regexp questions
>
> 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.
> >
> >
>
> Again...
>
> Why don't you show us an example of what it is you are trying to match this
> against. Then, after that example, show us what you would like to see as the
> output.
>
> Then, send us a copy of the code you are trying to use to make it all happen.
>
> --
> Jim Lucas
>
> "Some men are born to greatness, some achieve greatness,
> and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
> by William Shakespeare




I'm sorry Jim, but as majority of regexp, I can't explain you what I want with words...

I simply want to pick specific text at very specific places inside the html.



I'm sending you to your email the html and regex so you can test it if you want :)



Thanks.

I. Lopez.



_________________________________________________________________
Consejos para seducir ¿Puedes conocer gente nueva a través de Internet? ¡Regístrate ya!
http://contactos.es.msn.com/?mtcmk=015352
From: Ashley Sheridan on
On Wed, 2010-05-12 at 18:13 +0200, Spud. Ivan. wrote:

>
>
>
> > Date: Tue, 11 May 2010 15:38:41 -0700
> > From: lists(a)cmsws.com
> > To: spudmixe(a)hotmail.com
> > CC: php-general(a)lists.php.net
> > Subject: Re: [PHP] regexp questions
> >
> > 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.
> > >
> > >
> >
> > Again...
> >
> > Why don't you show us an example of what it is you are trying to match this
> > against. Then, after that example, show us what you would like to see as the
> > output.
> >
> > Then, send us a copy of the code you are trying to use to make it all happen.
> >
> > --
> > Jim Lucas
> >
> > "Some men are born to greatness, some achieve greatness,
> > and some have greatness thrust upon them."
> >
> > Twelfth Night, Act II, Scene V
> > by William Shakespeare
>
>
>
>
> I'm sorry Jim, but as majority of regexp, I can't explain you what I want with words...
>
> I simply want to pick specific text at very specific places inside the html.
>
>
>
> I'm sending you to your email the html and regex so you can test it if you want :)
>
>
>
> Thanks.
>
> I. Lopez.
>
>
>
> _________________________________________________________________
> Consejos para seducir ¿Puedes conocer gente nueva a través de Internet? ¡Regístrate ya!
> http://contactos.es.msn.com/?mtcmk=015352


It might be better to use some of the DOM functions for something like
this. You can pull out specific tags and tag content as you need. It's
better to rely on DOM functions for these sorts of things than using
regular expressions.

Thanks,
Ash
http://www.ashleysheridan.co.uk


From: "Spud. Ivan." on





Subject: RE: [PHP] regexp questions
From: ash(a)ashleysheridan.co.uk
To: spudmixe(a)hotmail.com
CC: php-general(a)lists.php.net
Date: Wed, 12 May 2010 17:11:11 +0100

On Wed, 2010-05-12 at 18:13 +0200, Spud. Ivan. wrote:



> Date: Tue, 11 May 2010 15:38:41 -0700
> From: lists(a)cmsws.com
> To: spudmixe(a)hotmail.com
> CC: php-general(a)lists.php.net
> Subject: Re: [PHP] regexp questions
>
> 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.
> >
> >
>
> Again...
>
> Why don't you show us an example of what it is you are trying to match this
> against. Then, after that example, show us what you would like to see as the
> output.
>
> Then, send us a copy of the code you are trying to use to make it all happen.
>
> --
> Jim Lucas
>
> "Some men are born to greatness, some achieve greatness,
> and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
> by William Shakespeare




I'm sorry Jim, but as majority of regexp, I can't explain you what I want with words...

I simply want to pick specific text at very specific places inside the html.



I'm sending you to your email the html and regex so you can test it if you want :)



Thanks.

I. Lopez.



_________________________________________________________________
Consejos para seducir ¿Puedes conocer gente nueva a través de Internet? ¡Regístrate ya!
http://contactos.es.msn.com/?mtcmk=015352

It might be better to use some of the DOM functions for something like this.. You can pull out specific tags and tag content as you need. It's better to rely on DOM functions for these sorts of things than using regular expressions.






Thanks,
Ash
http://www.ashleysheridan.co.uk



>





But If I remove tags, I can't match this specific place, because are just these tags who distinct the place where to match.



I.Lopez.




_________________________________________________________________
Consejos para seducir ¿Puedes conocer gente nueva a través de Internet? ¡Regístrate ya!
http://contactos.es.msn.com/?mtcmk=015352