<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/regexkit/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/regexkit/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/regexkit/feature-requests/</id><updated>2011-07-07T12:42:30Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Moving to ARC</title><link href="https://sourceforge.net/p/regexkit/feature-requests/11/" rel="alternate"/><published>2011-07-07T12:42:30Z</published><updated>2011-07-07T12:42:30Z</updated><author><name>florian petit</name><uri>https://sourceforge.net/u/florianpetit/</uri></author><id>https://sourceforge.netd0a953f6029386f1a32e69bd548014b0e054b8b7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I'm wondering if you will move the implementation of regexkitlite to an ARC compatible version ? &lt;br /&gt;
Here's how I do to use RegexKitLite in an ARC capable application in Xcode (Click Project &amp;gt; Target &amp;gt; Build Phases &amp;gt; Compile sources &amp;gt; select RegexKitLite.m and set compiler flag to -fno-objc-arc) this will tell the compiler that this file uses manual reference counting and will not produce error compiling the project with ARC flag.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>RKL: Need API to that returns ranges, instead of strings</title><link href="https://sourceforge.net/p/regexkit/feature-requests/10/" rel="alternate"/><published>2009-12-28T17:22:43Z</published><updated>2009-12-28T17:22:43Z</updated><author><name>James Berry</name><uri>https://sourceforge.net/u/jberry63/</uri></author><id>https://sourceforge.net3b02bef63593b0d93a016b6b013cfd6177c62765</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It would be great to have an API similar to captureComponentsMatchedByRegex:range:, but which returns the results as NSRanges rather than strings.&lt;/p&gt;
&lt;p&gt;I find myself in the situation of having to call rangeOfRegex:inRange:, in order to determine where the match occurred, followed by captureComponentsMatchedByRegex:range: to determine the captures from that match.&lt;/p&gt;
&lt;p&gt;I am iteratively traversing a string looking for matches, processing the captures, and then looking for the next match. I have to track the position of the match because I also have to process the text before and after the match.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>opt to return ranges instead of strings</title><link href="https://sourceforge.net/p/regexkit/feature-requests/9/" rel="alternate"/><published>2009-10-09T19:43:51Z</published><updated>2009-10-09T19:43:51Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.nete8959004090f1ccc51eff12a2eeb1dde3d7e5e68</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Would like to see an option to return the ranges of the strings, rather than the actual strings. Perhaps returning an NSArray of NSValues containing each range.&lt;/p&gt;
&lt;p&gt;For example, if you wanted to implement a Find Dialog, you'd want to ranges so you could highlight the found text.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>anyMatchingRegexInArray: for RegexKit lite</title><link href="https://sourceforge.net/p/regexkit/feature-requests/8/" rel="alternate"/><published>2009-08-06T21:21:55Z</published><updated>2009-08-06T21:21:55Z</updated><author><name>Roger</name><uri>https://sourceforge.net/u/reilly123/</uri></author><id>https://sourceforge.net0ce2745d40b8f2896e3a72a3fb5af04a50c89d68</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;something like anyMatchingRegexInArray:(NSArray *)regexArray would be a really great addition for regexkit lite. &lt;/p&gt;
&lt;p&gt;doing something like &lt;/p&gt;
&lt;p&gt;for (NSString * aString in mainDelegate.whiteListArray) {&lt;/p&gt;
&lt;p&gt;if (![urlString isMatchedByRegex:aString]) {&lt;/p&gt;
&lt;p&gt;is very slow, especially on the iPhone.&lt;/p&gt;
&lt;p&gt;thanks in advance.&lt;/p&gt;
&lt;p&gt;Reilly&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Simple boolean regexIsValid method</title><link href="https://sourceforge.net/p/regexkit/feature-requests/7/" rel="alternate"/><published>2009-05-04T21:50:54Z</published><updated>2009-05-04T21:50:54Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net0e1462dffe163b4bd122131594f36c761f56a35b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It would be very nice if RegexKitLite had a simple boolean method for checking if a given regex is valid without the need to run it on an actual string.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Support for fetching array of matches.</title><link href="https://sourceforge.net/p/regexkit/feature-requests/6/" rel="alternate"/><published>2009-04-23T08:27:51Z</published><updated>2009-04-23T08:27:51Z</updated><author><name>Fredrik Olsson</name><uri>https://sourceforge.net/u/peylow/</uri></author><id>https://sourceforge.netfb151cf3c23c2d51f7991c3b66f5b7ed9c0ec477</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have added three new methods to the public API as this:&lt;/p&gt;
&lt;p&gt;- (NSArray *)RKL_METHOD_PREPEND(componentsMatchedByRegex):(NSString *)regex;&lt;br /&gt;
- (NSArray *)RKL_METHOD_PREPEND(componentsMatchedByRegex):(NSString *)regex inRange:(NSRange)range;&lt;br /&gt;
- (NSArray *)RKL_METHOD_PREPEND(componentsMatchedByRegex):(NSString *)regex options:(RKLRegexOptions)options inRange:(NSRange)range capture:(NSUInteger)capture error:(NSError**)error;&lt;/p&gt;
&lt;p&gt;The actual implementation is done in the static method rkl_collectArray, that is called by performRegexOp when using RKLCollectOp as regex operation argument.&lt;/p&gt;
&lt;p&gt;I hope this fits well with the overall design.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>escaping reserved characters for re pattern</title><link href="https://sourceforge.net/p/regexkit/feature-requests/5/" rel="alternate"/><published>2009-04-09T19:56:14Z</published><updated>2009-04-09T19:56:14Z</updated><author><name>laurens</name><uri>https://sourceforge.net/u/jlaurens/</uri></author><id>https://sourceforge.net41edabd760b756dab10dde35397dc72b520e716a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;For regexkitlite, it would be cool to have somethig to escape the reserved characters.&lt;br /&gt;
Consider something like&lt;/p&gt;
&lt;p&gt;NSString * S = @"Do you dance?";&lt;br /&gt;
NSString * regex = [NSString stringWithFormat:@"%@",[S stringByEscapingICUREControlCharacters]];&lt;br /&gt;
NSRange R = [searchString rangeOfRegex:regex];&lt;/p&gt;
&lt;p&gt;In general the format string is much more complicated. Here is what I use:&lt;/p&gt;
&lt;p&gt;- (NSString *)stringByEscapingICUREControlCharacters;&lt;br /&gt;
{&lt;br /&gt;
// see &lt;a href="http://www.icu-project.org/userguide/regexp.html" rel="nofollow"&gt;http://www.icu-project.org/userguide/regexp.html&lt;/a&gt;&lt;br /&gt;
// "Characters that must be quoted to be treated as literals are * ? + [ ( ) { } ^ $ | \ . /"&lt;br /&gt;
NSMutableString * MS = [NSMutableString stringWithString:self];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"\\" withString:@"\\\\" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"*" withString:@"\\*" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"?" withString:@"\\?" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"+" withString:@"\\+" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"[" withString:@"\\[" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"(" withString:@"\\(" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@")" withString:@"\\)" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"{" withString:@"\\{" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"}" withString:@"\\}" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"^" withString:@"\\^" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"$" withString:@"\\$" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"|" withString:@"\\|" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"." withString:@"\\." options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
[MS replaceOccurrencesOfString:@"/" withString:@"\\/" options:NULL range:NSMakeRange(0,[MS length])];&lt;br /&gt;
return [NSString stringWithString:MS];&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Make RKStringBuffer (and friends) public</title><link href="https://sourceforge.net/p/regexkit/feature-requests/4/" rel="alternate"/><published>2009-01-30T01:04:37Z</published><updated>2009-01-30T01:04:37Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net53f9917f45de83e51d974a3162db4cd847bfb98f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We'd like to store off a reference to an RKStringBuffer while we use primitives like getRanges:withCharacters:length:inRange: so we don't have to keep converting it to utf8.  Additionally, we'd like to be able to convert the ranges from utf8 to utf16 via a RKStringBuffer using RKConvertUTF8ToUTF16RangeForStringBuffer(), not using RKConvertUTF8ToUTF16RangeForString() because of the conversion costs and the frequency of needing to use this call. &lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Will&lt;br /&gt;
will [@] panic [dot] com&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Search &amp; Replace for RegexKitLite</title><link href="https://sourceforge.net/p/regexkit/feature-requests/3/" rel="alternate"/><published>2008-06-14T00:42:25Z</published><updated>2008-06-14T00:42:25Z</updated><author><name/><uri>https://sourceforge.net</uri></author><id>https://sourceforge.netbed2a6ea26b8ce7cad402f878270ee04592cbec9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Would it be possible to add search &amp;amp; replace functionality to RegexKitLite?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>named subpatterns to dictionary</title><link href="https://sourceforge.net/p/regexkit/feature-requests/2/" rel="alternate"/><published>2008-06-01T19:28:59Z</published><updated>2008-06-01T19:28:59Z</updated><author><name>Geoff Foster</name><uri>https://sourceforge.net/u/userid-1310426/</uri></author><id>https://sourceforge.netdf3631a47761375ece4dd950a3f3013bf4bfd80a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Unless I'm mistaken, in order to get the named subpatterns you use the getCapturesWithRegexAndReferences method and provide it with the names and storage locations. It would be nice to to have something similar to Pythons re matches groupdict method where a dictionary of all named subpattern matches is returned.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>