Find multiple regexp
Posted: Mon Dec 20, 2010 6:26 pm
Hi!
I often use textcrawler to just classify lots of text files. This often involves searches like this "Files that match regexp1 and regexp2"
I've found two ways to do this and the both have advantages and disadvantages.
My first approach was to match regexp1 mark all files and then use regexp2 with "in marked files". This works fine, but you don't see how the file matched regexp1 in the preview.
The other way I wound was to try to build a regexp that includes both regexp, but this regexp also matched all characters in between which is bad for the memory and the preview.
I'm not certain which seems to be the best way to get this to work, either have the ability to "remember" what was highlighted before running another search, or a way to express that I don't care about a character, but I think that would be a really big and weird change in the regexp engine...
I often use textcrawler to just classify lots of text files. This often involves searches like this "Files that match regexp1 and regexp2"
I've found two ways to do this and the both have advantages and disadvantages.
My first approach was to match regexp1 mark all files and then use regexp2 with "in marked files". This works fine, but you don't see how the file matched regexp1 in the preview.
The other way I wound was to try to build a regexp that includes both regexp, but this regexp also matched all characters in between which is bad for the memory and the preview.
I'm not certain which seems to be the best way to get this to work, either have the ability to "remember" what was highlighted before running another search, or a way to express that I don't care about a character, but I think that would be a really big and weird change in the regexp engine...