Textpad 5.0.3 - New user

General questions about using TextPad

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

Post Reply
nathanv117
Posts: 14
Joined: Tue Jul 31, 2007 3:14 pm

Textpad 5.0.3 - New user

Post by nathanv117 »

How to specify find filter using wild char for the following?

In a line I want to skip n chars starting from position p and to find a string of chars.

Thanks
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Checkmark in box for Regular Expressions
Checkmark in box for POSIX syntax (Configure/Preferences/Editor)

Find: ^.{6}.*def

This will find the last occurrence of "def" after the first 6 characters.
Note that all characters from the beginning will be highlighted, not just the "def" string

What are you planning to do with the string you are searching for?

-------------------------
Hope this was helpful.............good luck,
Bob
nathanv117
Posts: 14
Joined: Tue Jul 31, 2007 3:14 pm

Post by nathanv117 »

Apprpeciate your help.
If it highlights all preceding vhars, how can I replace the target string.
nathan
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Find what: ^(.{6}.*)def
Replace with: \1ghi

[X] Regular expression
This assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax
Post Reply