Questions tagged [regexkitlite]

Lightweight Objective-C Regular Expressions for Mac OS X using the ICU Library

RegexKitLite enables easy access to regular expressions by providing a number of additions to the standard Foundation NSString class. RegexKitLite acts as a bridge between the NSString class and the regular expression engine in the International Components for Unicode, or ICU, dynamic shared library that is shipped with Mac OS X.

43 questions
0
votes
2 answers

Find URL inside NSString (BBCode) using RegexKitLite

HI, I have a NSString that cotains a lot of text. Inside the text is a iTunes URL. The URL is masked with BBCode. How can I extract the plain URL? Sorry, but my regex skills are really bad. The text: Lorem ipsum dolor sit amet, consetetur…
Raphael
  • 172
  • 1
  • 9
0
votes
1 answer

RegexKitLite replacement pattern changing case of found match

I'd like to change the case (ie, lowercase to uppercase) of found matches using RegexKitLite but don't know how or if it's possible. In PCRE regex, you can have in the replacement pattern something like \u$1 to uppercase the found match of group 1. …
0
votes
1 answer

Match several times in RegexKitLite

I'm trying to get some info out of a document. I'm trying to match the info I need with regex, which matches 3 numbers within a string. It works fine, but it only matches the first occurance. I need it to match an unlimited number of times because I…
Accatyyc
  • 5,798
  • 4
  • 36
  • 51
0
votes
1 answer

RegexKitLite issue

I installed RegexKitLite and everything functioning well, except there are many "analyzer results" about potential leaks when compiling the app. These warning are from the RegexKitLite.m Do I missing something during the installation? thanks
Kelvin
  • 1,082
  • 2
  • 12
  • 23
0
votes
2 answers

Objective C - RegexKitLite - Parsing inner contents of a string, ie: start(.*?)end

NSString *myText = @"mary had a little lamb"; NSString *regexString = @"mary(.*?)little"; for(NSString *match in [myText captureComponentsMatchedByRegex:regexString]){ NSLog(@"%@",match); } This will output to the console two things: 1) "mary…
StuR
  • 12,042
  • 9
  • 45
  • 66
0
votes
1 answer

RegexKitLite iOS: Password validation - must include one number

I am using RegexKitLite in my iOS app and I need to do validation on a form for a password textfield. The rule I am going by is that the password should include at least one number, one uppercase letter, and two symbols. Could someone help me out…
MSU_Bulldog
  • 3,501
  • 5
  • 37
  • 73
0
votes
3 answers

Regular Expression doesn't match

I've got a string with very unclean HTML. Before I parse it, I want to convert this:
dododedodonl
  • 4,585
  • 6
  • 30
  • 43
0
votes
1 answer

Regular Expression doesn't match

I've got a regular expression in my cocoa-touch app (using RegexKitLite). NSString *week = [[NSString alloc] initWithFormat:@"%@", [pageContent stringByReplacingOccurrencesOfRegex:@"
NE DEK