Hello
I have the '-' character as part of words in my rebol document class. Double clicking on words correctly selects e.g. this-is-one-single-word.
But when I search for, say, 'one', and I check 'Match whole words', TextPad will find 'one' in this-is-one-single-word.
Is there a way to avoid this?
Thanks,
HY
Whole words when searching
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Whole words when searching
Prætera censeo Carthaginem esse delendam
Please try implementing the following procedure in TextPad:
1. Open the Replace dialog box
2. Type or paste "[^-]?one[^-].?" without the quotes into the "Find what"
section
3. Under the heading "Conditions", check "Text and Regular expression"
5. Click "Find Next"
I have used POSIX regular expression syntax, which can be selected from the Editor page of the Preferences dialog box.
I hope this helps.
1. Open the Replace dialog box
2. Type or paste "[^-]?one[^-].?" without the quotes into the "Find what"
section
3. Under the heading "Conditions", check "Text and Regular expression"
5. Click "Find Next"
I have used POSIX regular expression syntax, which can be selected from the Editor page of the Preferences dialog box.
I hope this helps.
Helios Software Solutions
No, Kengrubb, not exactly. What I want is for TextPad's search box to treat this-is-one-single-word as one entire word when the currently used document class defines '-' as part of words. It shouldn't be the texpad user's job to figure out a regexp.
That said, I'm sure your regexp works just fine.
Regards,
HY
That said, I'm sure your regexp works just fine.
Regards,
HY
Prætera censeo Carthaginem esse delendam
HY,
I believe there are two issues here. First, you are reporting a problem with TextPad that you'd like corrected, and you are certainly correct about this behavior of TextPad.
The second issue is solutions to get you closer to where you'd like to be. I understand a reluctance to Regular Expressions in the Find dialog, particularly if this function is something you use a lot. However, a Macro could easily be recorded to use the contents of the Clipboard in the Find and the Macro itself could be mapped to a key combination.
HTH,
I believe there are two issues here. First, you are reporting a problem with TextPad that you'd like corrected, and you are certainly correct about this behavior of TextPad.
The second issue is solutions to get you closer to where you'd like to be. I understand a reluctance to Regular Expressions in the Find dialog, particularly if this function is something you use a lot. However, a Macro could easily be recorded to use the contents of the Clipboard in the Find and the Macro itself could be mapped to a key combination.
HTH,
(2[Bb]|[^2].|.[^Bb])
That is the question.
That is the question.