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
1 answer

Regexkitlite rejected at AppStore. What else can be used?

I am creating an application wherein I need to verify correct email format, for which I am using Regexkitlite. Although I works fine, but on spending some time on Google I learnt that it is no longer accepted on AppStore. If this is so, what else…
Nitish
  • 13,845
  • 28
  • 135
  • 263
0
votes
1 answer

Need help regarding creating a Regex for email id match

I am very new to regex and need help. I am looking for a regex which matches only if any of 3 email ids are found in the message headers (lets say a@gmail.com, b@gmail.com and c@rediffmail.com) if there is any email id in sender header then it…
0
votes
1 answer

RegexKitLite Not Matching NSString Correctly

Alright, I'm trying to write some code that removes words that contain an apostrophe from an NSString. To do this, I've decided to use regular expressions, and I wrote one, that I tested using this website: http://rubular.com/r/YTV90BcgoQ Here, the…
elliottbolzan
  • 1,057
  • 1
  • 15
  • 30
0
votes
1 answer

RegexKitLite match?

i want to replace the string aaaa{\"type\":\"video\",\"title\":\"a\",manyothershere\"}ssss to aaaa[video]ssss this means the string {"type":"video","title":"a",balabala"} to [video] i use RegexKitLite,i tried the code below ,but it doesn't work. …
guoxj
  • 1
0
votes
2 answers

How to Compare Second Letter?

I Use RegexKitLite FrameWorks. NSString *str = [NSString stringWithString:@"Welcome"]; NSString *newStr [NSString string]; //RegexKitLite.h reference. newStr = [str stringByReplacingOccurrencesOfRegex: withString:@"?"]; I want…
bitmapdata.com
  • 9,572
  • 5
  • 35
  • 43
0
votes
1 answer

about RegexKitLite linebreak

I'm use RegexKitLite to match some texts: xxx*[abc]*xxx and I want to match [abc],and use this regular: NSString *result = [@"xxx[abc]xxx" stringByMatching:@"\\[(.*)?\\]" capture:1]; then, the result is [abc].But, if have linebreak in…
user847556
  • 11
  • 3
0
votes
2 answers

RegexKitLite not matching, Perl-backed checkers are

I'm using RKL in a Cocoa app to parse log statements from a wrapped task. Pattern: (?:.+) \[.+?\] (.+) \[.+?\] logged in (?:.+) Test data: 2011-07-11 00:48:19 [INFO] Preparing spawn area: 97 2011-07-11 00:48:19 [INFO] Done (2175837000ns)! For…
MikeyWard
  • 1,123
  • 9
  • 19
0
votes
2 answers

IFTweetLabel RegexKitLite open UIWebView

I am using IFTweetLabel and have it to the point were it recognizes links but I am having an awful time opening a webview with the button IFTweetLabel creates. I a running the NSLog and can clearly see it is understanding each link when the button…
FreeAppl3
  • 858
  • 1
  • 15
  • 32
0
votes
1 answer

Parsing with regular expressions

I have some text like some text [http://abc.com/a.jpg] here will be long text can be multiple line breaks again [http://a.com/a.jpg] here will be other text blah blah Which I need to transform into
some text
Mujah Maskey
  • 8,654
  • 8
  • 40
  • 61
0
votes
3 answers

How can I write a regex that matches words that overlap themselves?

I'm trying to match a word forwards and backwards in a string but it isn't catching all matches. For example, searching for the word "AB" in the string "AAABAAABAAA", I create and use the regex /AB|BA/, but it only matches the two "AB" substrings,…
Hilton Campbell
  • 6,065
  • 3
  • 47
  • 79
0
votes
1 answer

tooltipHtml - extract from google maps call

" (2.1\x26#160;mi / 7 mins)" I have the above string and I need to get to the distance and time only. How would I go about doing this using the RegexKitLite script? Ideally, the below is what I'm looking for: time = 7 mins distance = 2.1…
Peter
  • 749
  • 10
  • 27
0
votes
1 answer

regexkitlite expression

I have to replace the following in a NSURL: a_token=lksjadfkj%2gf98273984 with a_token=new_token a token can be in the follwing forms: a_token=989asaofiusaodifusa9f789asdofu&lat=43.3 a_token=lksjadfkj%2gf98273984 So it either ends with & or end…
Zsolt
  • 3,648
  • 3
  • 32
  • 47
0
votes
1 answer

How to specify the type of text in UITextField

I'm trying to determine whether or not a user is entering a proper email address into a UITextField . I'm using this code but am getting the following error message. func isValidEmail(testStr:String) -> Bool { let emailRegEx =…
0
votes
1 answer

Regex issue using ICU regex/regexkitlite

Starting a new question as my other question solved a different issue with the regex. Here's my regex: (?i)\\d{1,4}(?
Nick Locking
  • 2,147
  • 2
  • 26
  • 42
0
votes
2 answers

regexkitlite match?

i would like to get everything inbetween &v= and "> using a regex expression, NSString *YouTubeRegex = @"/amp;v=([^(\">)]+)/"; But that regex is not returning any matches ? i know the coding is correct just not the regex expression any help…
user393273
  • 1,430
  • 5
  • 25
  • 48