Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,208,580 members, 8,003,024 topics. Date: Friday, 15 November 2024 at 03:55 AM

This Module Is Frankly Disgusting - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / This Module Is Frankly Disgusting (551 Views)

Gtbank Gtpay Magento Payment Module Integration, Ready!!! / Liberty Reserve Payment Module For Interspire Shopping Cart. / Moving To Oop Javascript/php Class Module Creation & Instantiation (2) (3) (4)

(1) (Reply) (Go Down)

This Module Is Frankly Disgusting by Nobody: 3:02pm On May 08, 2011
$html=preg_replace("/(((?>[^<]+)|(<(?!table\b[^>]*>wink))+)|(<table\b[^>]*>((?sad?>[^<]+)|<(?!table\b[^>]*>wink)*?)<\/table>wink/sx","<tr class=views_of_views_other><td class=view_of_views_other colspan=0>$1</td></tr>$5",$html);

You can find the remaining of the topic here - http://drupal.org/project/view_of_views


Aaaand yawatide complains that my codes are complicated atimes. . . . . .this one is a mind-blower for those not used to this kinda coding.

BTW, for beginners, this is a basic php function (i meant preg_replace) that allows you to do smart and intelligent search and replace.
A similar one will be str_replace - which is not as useful as preg_replace.

For instance, you can use preg_replace to extract all the urls of every hyperlink on a given website (or to extract phone numbers) from
a whole block of text (like those email extractor programmes). . .I will stop there. . . this was just to cool my brain a little

- Happy Mothers Day A'll (Please remember to call your mothers to say hi - as long as they are still alive, i don load enough credit to call
all my mothers)
Re: This Module Is Frankly Disgusting by DualCore1: 4:11pm On May 08, 2011
You or Arsenal, i no know who to para for.
Re: This Module Is Frankly Disgusting by ogzille(m): 4:45pm On May 08, 2011
preg_replace is xtremely useful in programming,

can rem running into a number of preg replaces when i created a function to read one html file
Re: This Module Is Frankly Disgusting by Nobody: 5:15pm On May 08, 2011
Hmm. . .
Re: This Module Is Frankly Disgusting by lojik(m): 9:12pm On May 08, 2011
Dat one complex sotey i decide say i no go look.
Re: This Module Is Frankly Disgusting by Nobody: 9:58pm On May 08, 2011
This code is very very long, i will have to virtually loop through my brains several times and take alabukun before i can fully understand what it does.
@least, the coder him/herself admitted that the code is frankly disgusting!

(1) (Reply)

Great Facebook Fanpage Design / New! Divilla Digital Community / Free Download Everything You Want

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.