Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: trim(both) ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 3438 of 3799
Post > Topic >>

Re: trim(both) problem?

by emilu@[EMAIL PROTECTED] (Emi Lu) Apr 28, 2008 at 09:19 AM

Thanks a lot for all help! I understand how trim work now.

>> You could probably use instead:
>> select replace('<BR/>ROI Engineering Inc.', '<BR/>', '')

> That would zap occurrences in the middle of the string, though.
> regexp_replace would be better since it'd allow anchoring the
> pattern, eg
> 
> select regexp_replace('<BR/>ROI Engineering Inc.', '^<BR/>', '');
> select regexp_replace('ROI Engineering Inc.<BR/>', '<BR/>$', '');

This is exactly I am looking for, but my version
PostgreSQL 8.0.15 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.2

does not sup****t this func, and have to think about the other way to 
'trim' the ^<BR/> & <BR>$

Thank you again!

-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 7 Posts in Topic:
trim(both) problem?
emilu@[EMAIL PROTECTED]   2008-04-25 16:33:49 
Re: trim(both) problem?
tgl@[EMAIL PROTECTED] (T  2008-04-25 16:44:30 
Re: trim(both) problem?
sszabo@[EMAIL PROTECTED]   2008-04-25 13:45:59 
Re: trim(both) problem?
fhevia@[EMAIL PROTECTED]   2008-04-25 18:03:14 
Re: trim(both) problem?
tgl@[EMAIL PROTECTED] (T  2008-04-25 17:26:27 
Re: trim(both) problem?
emilu@[EMAIL PROTECTED]   2008-04-28 09:19:03 
Re: trim(both) problem?
chestercyoung@[EMAIL PROT  2008-04-25 14:48:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 22:33:47 CST 2008.