jquery remove square brackets from string
There are the Following The simple About jquery remove square brackets from string Full Information With Example and source code.
var str = "['jaydeep',['pakainfo','gondaliya'],'infinityknow']"; //'[\'jaydeep\',[\'pakainfo\',\'gondaliya\'],\'infinityknow\']' str.replace(/[\[\]']/g,'' ); //'jaydeep,pakainfo,gondaliya,infinityknow'
Example 2: Remove square brackets
var myString = "Text [text]".replace(/\[.*?\]/g, ''); alert(myString);
I hope you get an idea about jquery remove square brackets from string.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.