Code:
let regex = try NSRegularExpression(pattern: "([+-]?\\d+(\\.\\d+)?)[Ee]([+-]?\\d+)", options: [])
Now options
should be of the type NSRegularExpressionOptions
, how does []
conform to that?
Code:
let regex = try NSRegularExpression(pattern: "([+-]?\\d+(\\.\\d+)?)[Ee]([+-]?\\d+)", options: [])
Now options
should be of the type NSRegularExpressionOptions
, how does []
conform to that?