Sebb created NET-526:
------------------------

             Summary: Avoid greedy matches within a regex
                 Key: NET-526
                 URL: https://issues.apache.org/jira/browse/NET-526
             Project: Commons Net
          Issue Type: Bug
            Reporter: Sebb


Some of the FTP directory parsers use greedy qualifiers - ".*" - within a regex.

This can be expensive, as it may require backtracking.
It's usually better to use a reluctant qualifier - e.g. ".*?" - except at the 
end of an RE.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to