Page 1 of 1

Help File add example to Find more than 1 word on same line

Posted: Wed Feb 13, 2008 12:14 am
by trangen
I have a feature request for something very simple

to be put in the Help section.

All I needed was to search for multiple or more than one word on the same line, at the same time.

Meaning BOTH or AND, not EITHER or OR search.

I went to the TextPad (TP) Help file, but no such example was given.

I had to go to the TP forum and Ben Josephs was able to help me.

I was searching my log for the word "inbound" and this IP address string "10.104.8.140"

E.g. inbound.*10.104.8.140

You might also want to add the example for OR or EITHER find or search version also

inbound|10.104.8.140

Thanks

What a great product you have.

Posted: Wed Feb 13, 2008 1:16 am
by Bob Hansen
RegEx is too complex to explain thouroughly in TextPad Help. I think it is there primarily for users who have some familiarity with it. But the listing of symbols is pretty clear in the Help section for How To Use Regular Expressions.

I recommend using Mastering Regular Expressions, 2nd Edition, by Jeffrey Friedel. Published by O'Reilly press, about $40 new. Note, that this is the 2nd edition. You will also learn that TextPad's version of RegEx does not have all the possible features. WildEdit does have more RegEx features, but still could be enhanced.

And of course, a great resource has been ben_josephs generosity and examples. You have already benefited from some of that. :wink:

Thanks Bob

Posted: Wed Feb 13, 2008 1:25 am
by trangen
I don't think it needs a thorough explaination.

Just an example of the and, or differeneces.

It took me all day to try to figure this out, and
I still didn't figure it out until BJ helped me.

"But the listing of symbols is pretty clear",
but that's just it, it wasn't clear to me, I read, and re-read, and at your suggestion re-read it.

Some of the other items have Examples and this one should too.

I think all it needs to say are these 3 lines:

To search for more than 1 word or string on a line do:

(searching for disneyland and california

E.g. disneyland.*california

Posted: Wed Feb 13, 2008 1:55 am
by Bob Hansen