[rt-devel] Fwd: RT 4.0.13 REST.pm faulty regex?

Tim Wiley tim at marchex.com
Wed Oct 30 13:09:09 EDT 2013


On 10/29/2013 09:03 AM, Tim Wiley wrote:
> On 10/29/2013 08:52 AM, Gene Hsu wrote:
>>
>>
>> ---------- Forwarded message ----------
>> From: *Gene Hsu* <gene at hsufarm.com <mailto:gene at hsufarm.com>>
>> Date: Tue, Oct 29, 2013 at 6:53 AM
>> Subject: Re: [rt-devel] RT 4.0.13 REST.pm faulty regex?
>> To: Jason Baum <jbaum-contractor at marchex.com
>> <mailto:jbaum-contractor at marchex.com>>
>>
>>
>> '-' must be at the beginning or end of a character class in order to be
>> interpreted as a '-', otherwise it is interpreted as a range separator.
>>
>> I know nothing about the business logic around the regex, but it could
>> conceivably be this:
>>
>> my $field = '[a-z][a-z0-9_ ~/-]*’;
>>
>> The error exists because '_' comes after ' ' in the character set, since
>> a range is specified from lower bounds to upper bounds.

That worked beautifully.  Thank you for the regex help.  I guess it's 
true that you learn something new every day.


More information about the rt-devel mailing list