[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: Can you search within a dataset for a particular character?
The strpos() function returns the position of a substring in any string.
will be equal to 1 for any observation with a hyphen in mystringvar.
----- Original Message -----
Sent: Wednesday, March 07, 2007 2:44 PM
Subject: st: Can you search within a dataset for a particular character?
I have a dataset of names stored as string variables. Is there any way to
search the dataset for all data containing a particular character, a hyphen
for example? Also, is there any way to search the same dataset for all
names containing a space (as in last names with a space between them ex.
von cannon)? Thank you!
* For searches and help try: