|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by Mr_Splash in JavaScript, PHP Scripting Language, Regular Expressions, Scripting Languages
Hiya,
I need a PHP regular expression that replaces the anchor text in a link with the orginal but with a space after every 10 characters.
i.e.
blah blah <a href="
http://blah.com">Tex
tTextTextT
extTextTex
tTextTextT
ext</a> blah blah
becomes
blah blah <a href="
http://blah.com">Tex
tTextTe xtTextText TextTextTe xtText</a> blah blah
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625