Files
MP42Foundation/MP42/NSString+MP42Additions.h

22 lines
495 B
Objective-C

//
// NSString+MP42Additions.h
// MP42Foundation
//
// Created by Damiano Galassi on 18/09/15.
// Copyright © 2022 Damiano Galassi. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSString (MP42Additions)
- (NSArray<NSString *> *)MP42_componentsSeparatedByRegex:(NSString *)regex;
- (BOOL)MP42_isMatchedByRegex:(NSString *)regex;
- (NSString *)MP42_stringByMatching:(NSString *)regex capture:(NSInteger)capture;
@end
NS_ASSUME_NONNULL_END