jd2007 Posted October 6, 2007 Share Posted October 6, 2007 i created few functions which parse html but doesn't use regex to do it, is that ok ? i use explode()... Quote Link to comment https://forums.phpfreaks.com/topic/72090-hi-i-created-few-functions-which-parse-html-but-doesnt-use-regex-is-that-ok/ Share on other sites More sharing options...
MadTechie Posted October 6, 2007 Share Posted October 6, 2007 yes you have my permission!! what are you asking ? Quote Link to comment https://forums.phpfreaks.com/topic/72090-hi-i-created-few-functions-which-parse-html-but-doesnt-use-regex-is-that-ok/#findComment-363309 Share on other sites More sharing options...
jd2007 Posted October 6, 2007 Author Share Posted October 6, 2007 thanks...i was worried i'm a bad programmer if i don't use regex...sorry for posting this here..if it's wrong Quote Link to comment https://forums.phpfreaks.com/topic/72090-hi-i-created-few-functions-which-parse-html-but-doesnt-use-regex-is-that-ok/#findComment-363310 Share on other sites More sharing options...
MadTechie Posted October 6, 2007 Share Posted October 6, 2007 RegEx has LOTS of advantages, the question isn't a bad question but it really all depends on what you want to do. If you don't need fancy matching rules, then explode is fine (in some cases better) but if you need 20 explode's to pull one thing out then regex it probably better! PS: Bad programmer rarely know they are bad, thats what makes them bad.. your probably just inexperanced.. but pratice makes per..... well longer nights and increased the price of coffee and/or red bull Quote Link to comment https://forums.phpfreaks.com/topic/72090-hi-i-created-few-functions-which-parse-html-but-doesnt-use-regex-is-that-ok/#findComment-363311 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.