By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,805 Members | 1,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,805 IT Pros & Developers. It's quick & easy.

Replace bbcode with increment value

P: 137
I have an text field where some bb codes are in.
So i want 1 kind of bbcode to be replaced with some other data and add a number for the css.
The bbcode [readmore] has to be replaced with:
Expand|Select|Wrap|Line Numbers
  1. <pre><a class="show_hide" href="#" rel="#slidingDiv_x">View</a></pre><div id="slidingDiv_x" class="toggleDiv" style="display: none;">
And the tag [/readmore] has to be replaced by the </div> tag where the x stands for the number 1, 2, 3, 4 and so on.

Anybody an idea?
Jan 23 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.