Re: regex in plpgsql function - Mailing list pgsql-general

From Culley Harrelson
Subject Re: regex in plpgsql function
Date
Msg-id 20040122181042.GE29114@abcteach.com
Whole thread Raw
In response to Re: regex in plpgsql function  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
>
> I think you have to double the \s again in the function so that there
> are 4 \s for each \ in the RE.

Thanks.  This worked:

RETURN $1 ~
''^[[:alnum:]_]+[[:space:]]+[[:alnum:]_]?\\.?[[:space:]]?[[:alnum:]_]+$'';


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: tablespaces a priority for 7.5?
Next
From: "Rick Gigger"
Date:
Subject: Re: embedded/"serverless" (Re: serverless postgresql)