FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Checking equal number of <div> and </div>
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Checking equal number of <div> and </div> [message #171367 is a reply to message #171363] Thu, 30 December 2010 21:53 Go to previous message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma:
Senior Member
.oO(Denis McMahon)

> On 30/12/10 18:55, Bill Braun wrote:
>> On 12/30/2010 1:40 PM, Michael Fesser wrote:
>>> ..oO(jwcarlton)
>>>
>>>> Can you guys think of a good way for me to check a string to make sure
>>>> there are an equal number of<div (.*)> and</div>? Then, either add
>>>> or remove</div> tags as needed to make them match?
>>>
>>> You could run the string through Tidy.
>
>> As an alternative try Notepad++. It does a nice job of tying markup tags
>> together, instantly highlighting the bookends (e.g., <d>...</d> or
>> <ul>...</ul>). There are a number of similar markup editors out there. I
>> tried this one first, liked it, and did not explore any others. Very
>> good for PHP also.
>
> I think you're both missing the point here.

Tidy can be used as an PHP extension.

Micha
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ignoring Case on directories
Next Topic: Calculate the distance between 2 points
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 05:26:40 GMT 2024

Total time taken to generate the page: 0.04812 seconds