Heres the parser I'm using
http://www.zoklet.net/bbs/showthread.php?t=52363
its worked well for everything up until now. I put in some table BBCodes
Code:
"'\[TABLE\](.*?)\[/TABLE\]'" => "<table class=\"bb_table\">\\1</table>",
"'\[HEADING\](.*?)\[/HEADING\]'" => "<th>\\1</th>",
"'\[HEADING span=(.*?)\](.*?)\[/HEADING\]'is" => "<th colspan=\\1>\\2</th>",
"'\[ROW\](.*?)\[/ROW\]'" => "<tr>\\1</tr>",
"'\[ROW span=(.*?)\](.*?)\[/ROW\]'is" => "<tr colspan=\\1>\\2</tr>",
"'\[COL\](.*?)\[/COL\]'" => "<td>\\1</td>",
"'\[COL span=(.*?)\](.*?)\[/COL\]'is" => "<td rowspan=\\1>\\2</td>",
the problem is I can't put in line breaks like
| |
| [ROW] |
| [COL] |
| data |
| [/COL] |
| [/ROW] |
it will only parse it if its in a continuous line like
[ROW][COL]data[/COL][/ROW]it will get way too confusing putting in tables with a lot of data if you can't use line breaks. How would I get that parser to accept line breaks?