DanDaBeginner Posted May 25, 2007 Share Posted May 25, 2007 what would be the disadvantages and advantages of using ereg and preg? which one is more often used? according to the manual preg is much faster.. in that case how would I know when to use preg and ereg? Quote Link to comment Share on other sites More sharing options...
c4onastick Posted May 25, 2007 Share Posted May 25, 2007 preg is pretty much the standard. There are a bunch of advanced things you can do in preg (lookarounds, etc.) that aren't supported in ereg. Quote Link to comment Share on other sites More sharing options...
effigy Posted May 25, 2007 Share Posted May 25, 2007 As far as I know, ereg is there because it has been around a long time and it's part of the POSIX standard. Since preg is often faster, more advanced, and binary-safe, I see no reason for using ereg. Quote Link to comment Share on other sites More sharing options...
DanDaBeginner Posted May 26, 2007 Author Share Posted May 26, 2007 thanks guys... Quote Link to comment 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.