jquery remove square brackets from string

0
()

Today, We want to share with you jquery remove square brackets from string.In this post we will show you remove square brackets from json javascript, hear for javascript replace string between brackets we will give you demo and example for implement.In this post, we will learn about remove double quotes from string javascript with an example.

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.

Read Also:  how to write subquery in sql

As I will cover this Post with live Working example to develop How to remove square brackets in a Javascript array?, so the How to remove square brackets in string using regex? for this example is following below.

using regex

/[\[\]']+/g

Free Live Chat for Any Issue

"['jaydeep','xyz']".replace(/[\[\]']+/g,'')

Example

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);

Angular 6 CRUD Operations Application Tutorials

Read :

Read Also:  Create WordPress Custom Admin Page

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

Download

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.