Replacing content with Regular Expressions.

Replacing content with Regular Expressions.

Hi All,
I have a string content which include the content "[some number]". I wanted to replace the inner number which is inside the square bracket with jQuery regular expressions. the number inside the brackets are always variables.


Any suggesstions??