Search found 3 matches

by james deen
Sat Jul 12, 2008 9:09 am
Forum: Enhancement Suggestions
Topic: Regular Expressions
Replies: 0
Views: 487

Regular Expressions

It would be great if it were possible to specify richer regular expressions when performing a 'search' or 'find and replace'. Specifically, non-greedy matches (such as abc.+?def) appear to be currently impossible. [ In a perfect world, there would be full support of all perl regex, but perhaps that ...
by james deen
Thu Jul 10, 2008 9:37 pm
Forum: General
Topic: non-greedy matching
Replies: 2
Views: 351

Thanks for your response. That's a shame. The example you give will work in some simple situations, but not for the cases i have in mind - i'd really need proper non-greedy matching. I could potentially write an external tool to do the pattern matching but i wouldn't know how to select/highlight the ...
by james deen
Wed Jul 09, 2008 11:03 pm
Forum: General
Topic: non-greedy matching
Replies: 2
Views: 351

non-greedy matching

Can someone tell me how i can perform non-greedy matching using textpad?
for example, I'd like to change my pattern from

Code: Select all

abc.*def
to

Code: Select all

abc.*?def
to turn it into a non-greedy pattern.
However, this doesn't appear to work.
Do i need to escape the '?' symbol?

Thanks