By default those match beginning and end of string. If you use
NSRegularExpression, there's an AnchorsMatchLines option to control this
behavior.
Douglas Davidson
> On Jun 12, 2015, at 3:41 AM, Antonio Nunes wrote:
>
> Hi,
>
> I a trying to find a line within a string. When I write:
>
> le
Hi,
I a trying to find a line within a string. When I write:
let match = crashReport.rangeOfString("\nIdentifier:.*\n", options:
.RegularExpressionSearch)
…I get a match.
However, when I write
let match = crashReport.rangeOfString(“^Identifier:.*$", options:
.RegularExpressionSearch)
…which