Search found 44 matches

by dforrest
Mon Apr 04, 2022 11:00 pm
Forum: General
Topic: Regular expression to change line of text
Replies: 4
Views: 933

ben_josephs wrote:Find what: FileName \( (\.\./\.\./Routes/Watersnake/Alias/[^)]+) \)
Replace with: FileName \( "$1" \)
Thanks Ben. This is just what I needed.
by dforrest
Mon Apr 04, 2022 9:36 pm
Forum: General
Topic: Regular expression to change line of text
Replies: 4
Views: 933

Depending the exact details of what is to be replaced, this might do it: F i nd what: FileName \( ([^)]+) \) Re p lace with: FileName \( "$1" \) Thanks but it adds the quotes for all lines with a format like FileName ( xxxxx.s ) I really only need to replace lines with ../../Routes/Watersnake/Alias ...
by dforrest
Mon Apr 04, 2022 5:04 pm
Forum: General
Topic: Regular expression to change line of text
Replies: 4
Views: 933

Regular expression to change line of text

Can someone please help me with a regular expression to change multiple instances of: FileName ( ../../Routes/Watersnake/Alias/xyz1234.s ) in a file to: FileName ( "../../Routes/Watersnake/Alias/xyz1234.s" ) xyz1234 is different in content and length in each expression and should remain unchanged ...
by dforrest
Sat Dec 26, 2020 11:08 pm
Forum: General
Topic: Regular Expression Help Please
Replies: 12
Views: 3715

Jack, I realise that my first post was in error for which I apologies.

Your latest version does exactly what is needed and you have my sincere thanks for putting up with me and coming up with a solution.

David
by dforrest
Sat Dec 26, 2020 10:16 pm
Forum: General
Topic: Regular Expression Help Please
Replies: 12
Views: 3715

Jack, we seem to be getting closer but this gives me:

Code: Select all

"FileName ( ..\\\\\\\\..\\\\\\\\routes\\\\\\\\Chiltern\\\\\\\\Dynatrax\\\\\\\\DynaTrax-40055.s )"
where I need:

Code: Select all

FileName ( "..\\\\\\\\..\\\\\\\\routes\\\\\\\\Chiltern\\\\\\\\Dynatrax\\\\\\\\DynaTrax-40055.s" )
by dforrest
Sat Dec 26, 2020 3:11 pm
Forum: General
Topic: Regular Expression Help Please
Replies: 12
Views: 3715

Jack, I will state my initial query again and hope that this time I describe it correctly! I have several lines in a file as the following two lines: FileName ( ..\\\\\\\\..\\\\\\\\routes\\\\\\\\Chiltern\\\\\\\\Dynatrax\\\\\\\\DynaTrax-40055.s ) and FileName ( ..\\\\\\\\..\\\\\\\\routes ...
by dforrest
Sat Dec 26, 2020 12:26 pm
Forum: General
Topic: Regular Expression Help Please
Replies: 12
Views: 3715

Thank you Jack but I am confused. Where do we go from here?
by dforrest
Fri Dec 25, 2020 1:04 pm
Forum: General
Topic: Regular Expression Help Please
Replies: 12
Views: 3715

This in in principle is what I need although there are two problems. 1. It is only the following string which I am attempting to enclose with double quotes. Your solution quotes the whole line. ..\\\\\\\\..\\\\\\\\routes\\\\\\\\Chiltern\\\\\\\\Dynatrax\\\\\\\\DynaTrax-40055.s 2. There are two tab ...
by dforrest
Thu Dec 24, 2020 5:23 pm
Forum: General
Topic: Regular Expression Help Please
Replies: 12
Views: 3715

Yes the string is to be changed to be enclosed in double quotes.

All strings to be changed are identical except for the five digit number number which should remain unchanged.
by dforrest
Wed Dec 23, 2020 10:17 pm
Forum: General
Topic: Regular Expression Help Please
Replies: 12
Views: 3715

Regular Expression Help Please

I have very many entries in a file similar to the following: FileName ( ..\\\\\\\\..\\\\\\\\routes\\\\\\\\Chiltern\\\\\\\\Dynatrax\\\\\\\\DynaTrax-40082.s ) I need to change this to: "FileName ( ..\\\\\\\\..\\\\\\\\routes\\\\\\\\Chiltern\\\\\\\\Dynatrax\\\\\\\\DynaTrax-40082.s )" Each has a ...
by dforrest
Tue Feb 11, 2020 12:14 pm
Forum: General
Topic: Text Replacement to End of Line
Replies: 2
Views: 805

So simple. Thank you.
by dforrest
Sun Feb 09, 2020 2:32 am
Forum: General
Topic: Text Replacement to End of Line
Replies: 2
Views: 805

Text Replacement to End of Line

Is there any way to select all the text from the first time a particular character appears in a line of text, to the end of that line and replace it with other text. The "particular character" may be repeated in what is to be selected for replacement.
by dforrest
Mon May 22, 2017 4:41 pm
Forum: General
Topic: Screen Location
Replies: 2
Views: 711

TextPad 8.1.2 remembers its window position for me. As your question is slightly ambiguous: you want TextPad to start and display its window on a given position, right? "Screen" is a technical term, as in having 2 or even more monitors - but I think you don't want to instruct TextPad to be ...
by dforrest
Sat May 20, 2017 8:29 pm
Forum: General
Topic: Screen Location
Replies: 2
Views: 711

Screen Location

Is there a way to make the TextPad window open at a particular screen location (or to save the last screen location)?
by dforrest
Tue Mar 22, 2016 12:56 pm
Forum: General
Topic: New Document opens when not requested
Replies: 0
Views: 1998

New Document opens when not requested

When I send arguments to TextPad 8 to open multiple files, it also open a blank new documents. This did not happen in version 7. This does not happen I I use the "sent to" context menu. Any suggestions?