Link to home
Start Free TrialLog in
Avatar of eNarc
eNarcFlag for United Kingdom of Great Britain and Northern Ireland

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?

ASKER CERTIFIED SOLUTION
Avatar of rfwoolf
rfwoolf
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
also a small tip, you can use 'trim' to trim off extra spaces or that might sit on either side of the strings
SOLUTION
Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial