The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hey folks, i've written a function, which uses itself in order to generate a list, however if the list already has a child, it needs to recognise this, then make the nessessary adjustments to the string. so if you do indeed follow me, what i'm after is the regex to find a line ending with "</ul>".
ps, i thought about using substr on the fly, but i thought that might be quite intensive??? |
|
#2
|
||||
|
||||
|
Code:
/<\/ul>$/ Code:
/<\/ul>\n/ |
|
#3
|
||||
|
||||
|
thanks chroder, i didn't need it for this but can use it for something else, that i'm wrokign on right now as it goes
|
![]() |
|
|