Hi!
Sorry for my bad english!
I want to make HTML editor (editor with tags, like this on daniweb) with tables.
Here's the problem:
If user writes [TABLE], I made that this replace with <table>. If the user write, eg. [TABLE:BORDER=1;WIDTH:300;], it will change this to <table border=1 width=300>
Here's code how I made this:
string.replace(/\[TABLE:(BORDER=(\d)+;)*(WIDTH=(\d)+;)*\]/g,"<table border=$2 width=$4>")
But what if the user write it with inversion?
eg. [TABLE:WIDTH=300;BORDER:1].
The code, that I wrote, doesn't work.
How to do that?
ps. The width of table also didn't work.