postgresql - How to remove white spaces for column value in database -


i collecting tweets twitter , storing them in database. in tweets of tweets coming greater white space. when storing tweets database shown in below picture.

how remove white spaces shown

i tried remove white spaces using regex. here query

select '(' || regexp_replace(text, e'[[:space:]]', '', 'g') || ')'from persons; 

i getting following output

**output :** ('rt@cristiano:grandejogodetodaaequipa.vencemosjuntos,celebramosjuntos.@realmadrid#halamadrid#rmclasico:soccer::grinning::muscle::v::facepunch:https://t.co/…') 

in above output when tried using reg-ex, original spaces missing out. how store data getting neat english text regular spaces (i.e., removing white spaces,tabs).


Comments

Popular posts from this blog

Sass watch command compiles .scss files before full sftp upload -

filehandler - java open files not cleaned, even when the process is killed -

gridview - Yii2 DataPorivider $totalSum for a column -