eNarc
asked on
Check if string has the right string
Hi, how do I check if a string has a selected string in the string.
for example:
apples never fall short from a apple tree.
now if I wanted to search for only "Fall" it would bring back True. if I wanted to search for "Oranges" it would bring back false.
how could I put that into a function?
for example:
apples never fall short from a apple tree.
now if I wanted to search for only "Fall" it would bring back True. if I wanted to search for "Oranges" it would bring back false.
how could I put that into a function?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
also a small tip, you can use 'trim' to trim off extra spaces or that might sit on either side of the strings
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.