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

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
trangen
Posts: 16
Joined: Tue Jul 17, 2007 12:08 am
Location: Los Angeles CA USA

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

Post 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.
To Me or Not To Me
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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:
Hope this was helpful.............good luck,
Bob
trangen
Posts: 16
Joined: Tue Jul 17, 2007 12:08 am
Location: Los Angeles CA USA

Thanks Bob

Post 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
To Me or Not To Me
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Hope this was helpful.............good luck,
Bob
Post Reply