bug with RE - Mailing list pgsql-bugs

From Тучков Михаил
Subject bug with RE
Date
Msg-id 46A83820.5080506@ntrlab.ru
Whole thread Raw
Responses Re: bug with RE
List pgsql-bugs
Please, help me!
My code:
"IF char_length(substring(str from '^[a-zA-Z]*://'))=0 THEN  str:= 'http://'||str;
END IF;"

If str= http://www.msn.com then nothing happen
(all is OK), but if str= just www.msn.com then nothing happen too!

Why?

Then I experimen with that:
I change '=' to '<>'results:
str=http://www.msn.com -> http://http://www.msn.com
str=www.msn.com -> http://www.msn.com

Thank you.


pgsql-bugs by date:

Previous
From: "Mikhail"
Date:
Subject: BUG #3487: regular exp
Next
From: Magnus Hagander
Date:
Subject: Re: BUG #3487: regular exp