Regex
Regex copied to clipboard
Regular expressions for swift
I installed library with the latest cocoapods ``` target 'CardSampleTestTask' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! # Pods for CardSampleTestTask pod...
I'd love to have this support the same named groups that NSRE supports, like this: ```swift // NSRegularExpression try! NSRegularExpression(pattern: "^(?\\d+)\\." + "(?\\d+)\\." + "(?\\d+)" + "(?:-(?(?:(?[0-9A-Za-z-]+)\\.?)+))?" + "(?:\\+(?(?:(?[0-9A-Za-z-]+)\\.?)+))?$", options:...
Hi there, I am using a regular expression to look for the url of the 'visually similar' button on google. This is the regex I use: **"href=((?:(?!href).)*?)>Vis"** and it works...
I seems that when emojis are present it shifts the resulting groups and matched strings. For example I was using ```swift let textRegex = "\\[([^]]*)\\]".r! let input = """ Mexican...
Please update CocoaPods. Latest version is still 1.1.0 there!
Love the syntax. Love the features. But performance goes bad on large strings. Here's the test for digesting a crashlog. ```swift internal func testRegex() { let content: String = try!...
Can not build lib using swift package manager. Swift version: **3.1** Log: > error: invalid target name at 'Tests/Regex'; name of test targets must end in 'Tests' > error: invalid...