Sorry to bother you all. I'm no idea about regular expression. But right now I need one very badly. I want to split text using this format {{Text}}. The "Text" can be anything. All I need is split the text at the position of {{Text}}.
Here is a sample.
var Regx = My Regx;
var String = "{{This}} is a {{test}} string to be {{spliced}} with {{Regular}} Expression";
var SplitArray = String.split(Regx);
// it will give me an array like this
// ["","is a ","string to be "," with"," Expression"]
Thank you in advance.
Edit:
I solved it myself too. It is {{[^{}]+}}