Search found 172 matches

by terrypin
Tue Jul 05, 2022 3:40 pm
Forum: General
Topic: What is this symbol?
Replies: 14
Views: 5838

What is this symbol?

I found this symbol within some code tags in an electronics forum:
⦿

But in TextPad it pasted as '?' and I could not see it in the Clip Library.

Yet it pastes OK in both Notepad and Excel.
by terrypin
Sat Jun 11, 2022 2:14 pm
Forum: General
Topic: Struggling with this one, especially ''''''''muliple digits''''''''
Replies: 4
Views: 339

Thanks, that works fine. I follow the Find what , now that I see '\d' as a neat alternative to [0-9]. (Is the latter now not generally used?) But can you explain the Replace with please? Why two uses of '$'? How can two things be 'at the end of a line'? Or is '$' confusingly an alternative to '\'? A...
by terrypin
Fri Jun 10, 2022 3:34 pm
Forum: General
Topic: Struggling with this one, especially ''''''''muliple digits''''''''
Replies: 4
Views: 339

I re-discovered the '+' suffix (I'd been placing braces around it) but this Find: ([0-9]{2})(.*)([0-9]+) Replace with: \1\2\(\3\) delivered this 05 Baroque 11(7) 06 Female Vocals 24(0) 07 Christmas 12(8) that's '8' in brackets, not an emoticon as it displays here! 08 Conniff 18(5) 09 Easy, Ambient,e...
by terrypin
Fri Jun 10, 2022 3:02 pm
Forum: General
Topic: Struggling with this one, especially ''''''''muliple digits''''''''
Replies: 4
Views: 339

Struggling with this one, especially ''''''''muliple digits''''''''

I want to convert lines like these 05 Baroque 117 06 Female Vocals 240 07 Christmas 128 08 Conniff 85 09 Easy, Ambient,etc 184 10 Movies-Musicals-etc 410 into 05 Baroque #1 (117) 06 Female Vocals #1 (240) 07 Christmas #1 (128) 08 Conniff #1 (85) etc IOW, add the fixed string '#1', put the 2 or 3 dig...
by terrypin
Tue Nov 09, 2021 9:37 am
Forum: General
Topic: Stumped over this one
Replies: 6
Views: 683

Indeed, quite a bug for discussions about regex! Particularly cases like this. Never spotted that before, thanks.

In fact my target strings can also occur anywhere in a line. I'll remember to add that spec here in future.
by terrypin
Mon Nov 08, 2021 6:03 pm
Forum: General
Topic: Stumped over this one
Replies: 6
Views: 683

Thanks! Saw your impressively fast reply as I was coming back to proudly present the solution I came up with:

Code: Select all

Find what: (/*)(.*)(*/)
  Replace with: // 2
Seemed to work on first tests. Does that look reliable?
by terrypin
Mon Nov 08, 2021 5:38 pm
Forum: General
Topic: Stumped over this one
Replies: 6
Views: 683

Stumped over this one

I've been trying various regex expressions but so far in vain.

How do I change lines like this:
/*Set volume to 20*/

to this:
// Set volume to 20

IOW replace '/*' by '// ' (note the space), and delete '*/'
by terrypin
Thu Dec 31, 2020 3:46 pm
Forum: General
Topic: Achieving this with a single expression?
Replies: 2
Views: 1020

Excellent - thank you so much! Works fine.

And now that I see it, I realise I should have been able to do it myself.

Terry
by terrypin
Thu Dec 31, 2020 12:54 pm
Forum: General
Topic: Achieving this with a single expression?
Replies: 2
Views: 1020

Achieving this with a single expression?

It's obviously easy in two, but in a single step how can I get from this
2020-12-29_12-34-56.mp4
to this
20201229-123456.mp4
please?

Terry
by terrypin
Thu Nov 19, 2020 7:42 pm
Forum: General
Topic: Dragging child Windows?
Replies: 2
Views: 1005

Thanks a bunch, that was really bugging me!
by terrypin
Wed Nov 11, 2020 1:58 pm
Forum: General
Topic: Dragging child Windows?
Replies: 2
Views: 1005

Dragging child Windows?

In my shed workshop I use an old PC with an even older version of TextPad, 7.5.1. I use it rarely but was frustrated this morning that I could not drag two document windows to resize them within the screen, for comparing. I’m so used to doing so on my more modern PC in the house, with a slightly n...
by terrypin
Thu Jul 16, 2020 6:51 am
Forum: General
Topic: Lost assocaition with .txt files
Replies: 2
Views: 502

Mysteriously I now have somehow got the correct association back. No idea what caused the loss or the recovery!

I think this area is quite confusing in Win 10. The list of 'Default Apps' covers only six, and TEXT is not one of them. A strange omission IMO!
by terrypin
Wed Jul 15, 2020 5:31 pm
Forum: General
Topic: Lost assocaition with .txt files
Replies: 2
Views: 502

Lost assocaition with .txt files

D-clicking a TXT file in Win 10 File Explorer normally opens it in .my text editor, TextPad. Now it opens no program. (Not sure why; could be down to my playing with the obscure setting 'Write Unicode and UTF-8 BOM'.) So I used 'Choose default applications by file type' and set TXT to TextPad, but n...
by terrypin
Sun Jun 07, 2020 2:06 pm
Forum: General
Topic: Removing redundant spaces
Replies: 3
Views: 1226

Thanks, that is indeed much simpler!
by terrypin
Sat Jun 06, 2020 10:10 pm
Forum: General
Topic: Removing redundant spaces
Replies: 3
Views: 1226

OK, it came to me a few minutes later thanks. I hope this is correct?

Find
([^ ])([ ]+)

and replace with

\1

(That's \1 plus a space.)