I can't quite get me head around the regex syntax.
I am trying to loop through a string, removing all specified objects after a "$" symbol, ie:
is there a regex syntax for and/or? in the case of the "$" symbol above, it will match (and remove):
blahblah$~object_subresource
blahblah$script
but not:
blahblah$~object_subresource,script
**note: I am using the RegexKit Framework for the matching
I am trying to loop through a string, removing all specified objects after a "$" symbol, ie:
Code:
str = [str stringByMatching:@"\\$(\\~object_subresource| script|,)\\{0,3\\}" replace:RKReplaceAll withReferenceString:@""];
is there a regex syntax for and/or? in the case of the "$" symbol above, it will match (and remove):
blahblah$~object_subresource
blahblah$script
but not:
blahblah$~object_subresource,script
**note: I am using the RegexKit Framework for the matching