Lord Sandwich
New member
- Local time
- Today, 04:10
- Joined
- Feb 12, 2005
- Messages
- 5
Hi, I'm trying to create a function that can take two strings and return the number of matching whole words, for instance:
String1: "Al Roker"
String2: "Al Bundy"
Result: 1
String1: "All your base are belong to us"
String1: "All your bases are ours"
Result: 3
I figure I'd need to break up each string and place the words into arrays, but beyond that I have no idea how to proceed.
String1: "Al Roker"
String2: "Al Bundy"
Result: 1
String1: "All your base are belong to us"
String1: "All your bases are ours"
Result: 3
I figure I'd need to break up each string and place the words into arrays, but beyond that I have no idea how to proceed.