Thread: Regex examples
View Single Post
Old 03-19-2025, 12:16 PM   #778
Haudek
Member
Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.
 
Posts: 24
Karma: 111614
Join Date: Mar 2025
Location: Poland
Device: Kindle Voyage
Newest regex:
Code:
<p><a(?:\s+\w+="[^"]*")*\s+href="(.+?)"\s+id="(.+?)">([0-9]{1,4})</a>(?:\s)*(.+?)</p>
Quote:
Originally Posted by Pavulon View Post
I don't know how to do it, it replaces the HTML code for non-breaking spaces with asterisks.
If you want to write &#160; then mark “&” and bold this character. Then the parser will not treat this notation as an entity. It adds a bit of work when writing the post, but for later when copying there is no problem. Instead of bold, you can use something else (italics, different color, etc.).

Quote:
Originally Posted by Pavulon View Post
And how did you manage to put the images like that? Did you turn them into attachments?
I don't know if this is the correct way, but it can be done like this:
1. From the toolbar, you select the paperclip.
2. You add an attachment.
3. After adding an image attachment, you close the "Manage Attachments" window and select the arrow next to the paperclip.
Now all you have to do is select the appropriate image and [ATTACH]NUMBER[/ATTACH] will be inserted in the post code.
Done.

Last edited by Haudek; 03-20-2025 at 04:36 PM. Reason: A simple way to add attachments.
Haudek is offline   Reply With Quote