Possible Duplicate:
Use RegExp to match a parenthetical number then increment it
I know how to implement the solution already but with several ines of code; I'm wondering if there is a short and clever way of accessing the substring of a string that is an integer and incrementing it, where the substring isn't enclosed in any markup tags?
/*Let's say the string is*/ "<span class="ideacount">[5 ideas]</span>"
and I want to increment it to say "[6 ideas]".