Questions tagged [nsregularexpression]

The NSRegularExpression class is used to represent and apply regular expressions to Unicode strings. An instance of this class is an immutable representation of a compiled regular expression pattern and various option flags. The pattern syntax currently supported is that specified by ICU. iOS 4.0+ macOS 10.7+

This class in the Apple developer library (Mac OS X, iOS) is used to represent and apply regular expressions to Unicode strings.

NOTE: This tag should be used only for questions specific to the NSRegularExpression class. Questions about regular expressions in general should be tagged .

722 questions
-4
votes
2 answers

regex to get "words" delimited by space(s)?

What would the regex be (to be used in IOS, "NSRegularExpression") to get the "words" from a string delimited by a space(s), i.e. could be " ", or " ", or " " etc as the delimited. So therefore: "26:43:33 S 153:02:51 E" Would…
Greg
  • 34,042
  • 79
  • 253
  • 454
-4
votes
1 answer

Extract number(amount of money) from a sentence in iOS

I need to extract out the amount from the sentences containing amount information like "Rs 500". E.g => "Product costs Rs 500, would you like to buy???", I need the solution in regex, please share the code using NSRegularExpression class to extract…
Ashwani
  • 378
  • 1
  • 3
  • 13
1 2 3
48
49