Re: Help with regex (search/replace) please
| From: | Ashley Sheridan | Date: | Sat, 06 Feb 2010 15:56:50 +0000 |
| Subject: | Re: Help with regex (search/replace) please | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301848@lists.php.net to get a copy of this message | ||
On Sat, 2010-02-06 at 07:53 -0800, Ryan S wrote:
> Hey Ash,Bastien!
> <clip>
>
> Rather than a regex, you're probably better off using something like DomDocument, where
> you can iterate over all of the input elements in the document, and check the attributes of each one
> to check if they match your criteria.
> </clip>
>
> @Ash, You're kinda reading my mind... i did do this in domDocument but it didnt work out
> so well... so now am trying to do this in a diff way.
> Is it ok if i send you the code via an attachment? it is REALLLL messy code right now though.
>
> @Bastien, you're talking client side... i need to do this server side as then i am writing
> the results to a file which is going to be used as a template in other scripts.
>
> Thanks!
> Ryan
>
>
>
I'm not going to be about for most of the weekend now, so it might be
better putting the code in something like pastebin and posting a link to
it on here!
Thanks,
Ash
http://www.ashleysheridan.co.uk