Modified regexp in split_cells to allow for whitespace on the ends of lines

This change allows tables to have whitespace at the end without destroying the table:

~~~
|a|table|
|--|--|
|some|cells|  
|some|cells|
~~~

(note third line) produces a table with this code but is mangled with the existing code.