Pogledajte određenu poruku
Staro 17. 07. 2014.   #4
Bojsi
član
Certified
 
Datum učlanjenja: 24.01.2007
Poruke: 92
Hvala: 1
790 "Hvala" u 15 poruka
Bojsi is on a distinguished roadBojsi is on a distinguished roadBojsi is on a distinguished roadBojsi is on a distinguished roadBojsi is on a distinguished roadBojsi is on a distinguished roadBojsi is on a distinguished road
Default

Nesto ne ide. Ne znam gde gresim, nista mi izraz ne nalazi. Mozda neko zna gde gresim. Vec je kasno pa se nadam da nisam zaboravio i ono sto sam znao.

PHP kôd:
$s '<php:page><php:button>Test</php:button></php:page>';

$patterns[] = "|\<php:(.*?)\>(.*?)\</php:\1\>|s";        
$replaces[] = "X";

echo 
preg_replace($patterns$replaces$s); 
Bojsi je offline   Odgovorite uz citat
145 članova zahvaljuje Bojsi za poruku:
aaawamois, aaleragail, aczapiewskshain, aennimancarm, aeprocaccnath, aettermanmaudl, allen4jim, alovermannmiche, aparkagoose, areraodel, aringascarl, ariskaahme, bilpboyc, brdvenablerayfo, campanellawiley, cbuynecklaces, celebritybrautk, cellocchiwino, cfacecheap, cfakecoach, cheapestcheapes, christianchrist, clgroschmurie, cmmecare, ctarrickdied, cteciuccihenr, dgendant, dyejidemcki, eaksrobetiffany, eambleclai, eclawgesrayf, eduplerjerr, efaceface, ejerseynfl, encasteranto, enereebthom, eorsearth, eosuitergilb, esalenike, esbardneymarku, esbissonetulyss, eskuhlemarco, fhrentfrokhad, fuppfide, giohoergeroctav, haughbobb, hlsetheldo, hneprchalvale, hschherb, iaidimarc, ichristianheels, ijoachimteod, inejennieroxan, inmonningequent, ioltmeierlynd, istrahinarnu, istriblingmoshe, iyuriciclave, jnayjaso, jsenajelia, kbierskiaria, khackduan, klockelmo, komalakowrein, ktrackeisid, kwinskiiren, larholburt, ldiellobryo, lerolees, linmonclerblack, llpiccillorache, lnemccalebmarli, locellelli, lrbeatleyflet, menicomeodett, meymeri, mgronmonte, mnachambevict, naginalme, nbrabantarma, ncarpinonumb, nenningmick, nesimankricki, nieningshan, nincenorah, nnvalentasun, norbinshan, nordinoscot, nramanyjule, nrtmanwenwe, nsveentreva, nteilingayan, nurdinmitc, nydencesa, obertoerro, ofashionwigs, oiezarconepearl, oitchmorerowe, okristoffflor, olmilhoanhers, ottleroehugo, pcheapface, piehlphilr, prdpala, qlspraquemars, rahrexv, rallorcole, raynormarl, redmonstonwarne, refnerrein, rkunaroyal, rlamryan, rldogarrreyna, rlingeriebuy, rlmaherrusse, ronicodemumilag, rslerkimp, ruhnerrenek, rumbersjoey, rverydresses, rwaversteve, saccorsiamos, sdressesdresses, semerssonn, shelmsdarr, skocsismoshe, srdbaisesanfo, srerasruss, stensmaik, taslattershaq, tewittgran, tinregestevalen, tovanderarmodes, twaratmarc, udiscountbags, ueesaunanni, uolyneuxmarc, vienvert, wacheweloy, wholesaleprices, yaircorytiffany, yatelybret, yntyno, yrleyange, yusleycedr