I'm searching for a RegExp that finds {}
I was under the understanding that this: /[{}]{2}/g;
- regexpression finds: {} and only the brackets if they stand exactly like that next to each other. I'm doing some code that makes me believe that I misunderstood that.
I now have this line: {{x,y},{0.0,1.0},{0.2,1.2214},{0.4,1.49182},{0.6,1.82212},{0.8,2.22554},{1.0,2.71828}}
And it becomes: { }x,y},{0.0,1.0},{0.2,1.2214},{0.4,1.49182},{0.6,1.82212},{0.8,2.22554},{1.0,2.71828{ }
That wasn't what I wanted, the above line should not be influenced by my regexp, because nowhere there is a "{}".
+++
ok so i misunderstood, How to do a rexeprexstion that ONLY findes "{}" when they stand exactly like that, no space between them, } comes after { ???