[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Bad uses of patterns (was: Re: Feature request: names for constants)
- From: "Soni L." <fakedme@...>
- Date: Thu, 24 Sep 2015 13:45:09 -0300
On 24/09/15 12:39 PM, Dirk Laurie wrote:
Wouldn't it be faster if you trimmed at start, reversed, then trimmed at
start again? (or maybe at start, then at end?)
Consider the following code:
local trim_pattern = "^%s*(.*%S)%s*$"
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.