Function to return number of words in a string? - Mailing list pgsql-general

From Peter Fein
Subject Function to return number of words in a string?
Date
Msg-id 20050509112128.02077a86@layout.pfein.org
Whole thread Raw
Responses Re: Function to return number of words in a string?  ("Jim C. Nasby" <decibel@decibel.org>)
Re: Function to return number of words in a string?  (Peter Fein <pfein@pobox.com>)
List pgsql-general
Hiya-

I'm looking for a function to return the number of words in a string,
split on whitespace.  I'm coming from python, so I may just write it in
that but I wanted to check first.  In python, one would write:

s="some string or other"
len(s.split())

Thanks!

--
Peter Fein                 pfein@pobox.com                 773-575-0694

Basically, if you're not a utopianist, you're a schmuck. -J. Feldman

pgsql-general by date:

Previous
From: "Masse Jacques"
Date:
Subject: Re: aide postgres
Next
From: Ben
Date:
Subject: Re: Postgres and GnuPlot