2014-08-02, 07:15 PM
Hi, can anyone tell if it is possible to make the following mycode work in one mycode 'expression':
At the moment the user is forced to enter the variables.
Expression:
Yes, I know I'm using a div. For technical reasons I was forced to use a div, as <td> and <tr> broke the layout if it wasn't wrapped in <table>.
- [table][/table] Default - aligned to the left with no header
- [table align=center][/table]
- [table header=yes][/table]
- [table align=center header=yes][/table]
At the moment the user is forced to enter the variables.
Expression:
\[table=(left|center) header=(yes|no)\](.*?)\[/table\]
Replacement:<div class="post-table $1 header-$2">
$3
</div>
Example:[table=center header=yes]...[/table]
Yes, I know I'm using a div. For technical reasons I was forced to use a div, as <td> and <tr> broke the layout if it wasn't wrapped in <table>.