Instance Methodswift 6.0.3Foundation
firstMatch(in:options:range:)
func firstMatch(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange) -> NSTextCheckingResult?
func firstMatch(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange) -> NSTextCheckingResult?
s10Foundation19NSRegularExpressionC10firstMatch2in7options5rangeAA20NSTextCheckingResultCSgSS_AC15MatchingOptionsVAA8_NSRangeVtF
What are these?5PIR3
import Foundation
class NSRegularExpression
@frozen struct String
A Unicode string value that is a collection of characters.
struct MatchingOptions
class NSTextCheckingResult
required convenience init?(coder aDecoder: NSCoder)
init(pattern: String, options: NSRegularExpression.Options = []) throws
class var supportsSecureCoding: Bool { get }
class func escapedPattern(for string: String) -> String
class func escapedTemplate(for string: String) -> String
var numberOfCaptureGroups: Int { get }
var options: NSRegularExpression.Options { get }
var pattern: String { get }
override func copy() -> Any
func copy(with zone: NSZone? = nil) -> Any
func encode(with aCoder: NSCoder)
func enumerateMatches(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange, using block: @escaping (NSTextCheckingResult?, NSRegularExpression.MatchingFlags, UnsafeMutablePointer<ObjCBool>) -> Void)
override func isEqual(_ object: Any?) -> Bool
func matches(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange) -> [NSTextCheckingResult]
func numberOfMatches(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange) -> Int
func rangeOfFirstMatch(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange) -> NSRange
func replaceMatches(in string: NSMutableString, options: NSRegularExpression.MatchingOptions = [], range: NSRange, withTemplate templ: String) -> Int
func replacementString(for result: NSTextCheckingResult, in string: String, offset: Int, template templ: String) -> String
func stringByReplacingMatches(in string: String, options: NSRegularExpression.MatchingOptions = [], range: NSRange, withTemplate templ: String) -> String
struct MatchingFlags
struct Options