title: How to remove surplus spaces at the end of a cell value in sqlite3?
body: <p>I'm looking for a way to get rid of surplus spaces at the end of perfectly fine cell values. That would be all two spaces or more at the end of a cell value. Some cell values contain spaces between words. The sed command for such value would have been <code>sed -re 's/\s{2,}*$//'</code>. As far as I know <code>REPLACE()</code> doesn't support patterns at all nor backward replacement groups (\0 \1 and so on) and <code>REGEXP()</code> (from the externally-loaded library) doesn't do replacements.</p>