Regex substring help - Mailing list pgsql-general

From Nick
Subject Regex substring help
Date
Msg-id 3ecde714-8579-45d5-adc0-e816f0e0ea4c@d9g2000prh.googlegroups.com
Whole thread Raw
Responses Re: Regex substring help  (David Fetter <david@fetter.org>)
List pgsql-general
Im trying to get all the text before the '<br>' tag.

SELECT SUBSTRING('one<br>two<br>three','(^.*)<br>.*$');

returns "one<br>two"

How do I get it to return "one"?

pgsql-general by date:

Previous
From: Jerry LeVan
Date:
Subject: Re: Snow Leopard and plpython problem
Next
From: David Fetter
Date:
Subject: Re: Regex substring help