Search Postgresql Archives

Function to return number of words in a string?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx                 773-575-0694

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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux