Originally Posted By: acmp
 Code:
* (trim($)=$)

nice test.


Have to be careful though - the algorithm will fail if there is a trailing space in the string