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.
Help File add example to Find more than 1 word on same line
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Help File add example to Find more than 1 word on same line
To Me or Not To Me
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
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.
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.
Hope this was helpful.............good luck,
Bob
Bob
Thanks Bob
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
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
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Discussion continued at: http://forums.textpad.com/viewtopic.php?p=30554#30554
Hope this was helpful.............good luck,
Bob
Bob