Predicate for searching the first letter of each word in a string of words

Posted by JK on Stack Overflow See other posts from Stack Overflow or by JK
Published on 2010-04-23T19:54:17Z Indexed on 2010/04/23 20:23 UTC
Read the original article Hit count: 191

I would like to create a predicate to search for a specific letter at the start of each word in a string of words e.g. all words starting with A in @"The man ate apples", would return ate and apples. Is it possible to create such a predicate? Thank you.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about cocoa-touch