- - Code, Content, and Presentation
- -- PHP Server Side Scripting
- ---- preg replace for a SIP URI
g1smd - 9:35 pm on Jul 12, 2011 (gmt 0)
The .* pattern means "match everything until the end of the input". Having done that, you then want to match "everything" again a further two times. That is not possible.
This will parse a lot faster:
Thread source: http://www.webmasterworld.com/php/4338673.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com