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 would seem more to the point, no match is returned. Shouldn’t this work, 
if the above works?

Am I overlooking something obvious?

-António
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to