replace something with a tab (^T or \t) [7.2/fv] #bugs questionmark #bugs


hwitche
 

Hi all,

I would like to replace the string

"Org:[here is a tab>>......]Northland Communications"

to: [tab>>......]Northland Communications"

with a tab.

Problem 1:
^!Replace "(Org:)" >> "" RAS eliminates the "Org:" but also the Tab, Why?

Problem 2:
For some unknown reason all replacements below do not work:

^!Replace "(Org:)" >> "^T" RAS

^!Replace "(Org:)" >> "\t" RAS

^!Replace "(Org:)" >> ">>......" RAS

I get only spaces. What is the right code?

Thank you for some advice

hwitche


John Shotsky
 

Assuming the original tab is present:
^!Replace "^Org:\b" >> "" ARSW
Assuming the original tab is not present, but wanted
^!Replace "^Org:\s*" >> "\t" ARSW
Regards,
John

-----Original Message-----
From: Clips@Notetab.groups.io <Clips@Notetab.groups.io> On Behalf Of hwitche via groups.io
Sent: Sunday, October 18, 2020 9:28 AM
To: Clips@Notetab.groups.io
Subject: [NTB-Clps] replace something with a tab (^T or \t) [7.2/fv] #bugs questionmark

Hi all,

I would like to replace the string

"Org:[here is a tab>>......]Northland Communications"

to: [tab>>......]Northland Communications"

with a tab.

Problem 1:
^!Replace "(Org:)" >> "" RAS eliminates the "Org:" but also the Tab, Why?

Problem 2:
For some unknown reason all replacements below do not work:

^!Replace "(Org:)" >> "^T" RAS

^!Replace "(Org:)" >> "\t" RAS

^!Replace "(Org:)" >> ">>......" RAS

I get only spaces. What is the right code?

Thank you for some advice

hwitche


hwitche
 

John,

thank you so much!
Now the whole story:
I couldn't believe the code was not working again in my setting, I finally found the mistake I made:
I absent-mindedly overlooked a replacement further down in my script, which invalidated the tab insertion, so my code was actually working too, but I stupidly reversed it.
I'm very sorry and I apologize to you and the community about my sloppiness to bother about it.
Thanks again!
All the best

hwitche


John Shotsky
 

No problem! I remember when I forgot the backslash on \d in a class, and could not understand why the clip would not work-for hours...we all do that.
Regards,
John

-----Original Message-----
From: Clips@Notetab.groups.io <Clips@Notetab.groups.io> On Behalf Of hwitche via groups.io
Sent: Sunday, October 18, 2020 2:19 PM
To: Clips@Notetab.groups.io
Subject: Re: [NTB-Clps] replace something with a tab (^T or \t) [7.2/fv] #bugs questionmark

John,

thank you so much!
Now the whole story:
I couldn't believe the code was not working again in my setting, I finally found the mistake I made:
I absent-mindedly overlooked a replacement further down in my script, which invalidated the tab insertion, so my code was actually working too, but I stupidly reversed it.
I'm very sorry and I apologize to you and the community about my sloppiness to bother about it.
Thanks again!
All the best

hwitche