Search the Community
Showing results for tags 'regular expressions'.
-
Find and replace (suggestions for improvement)
Guest posted a topic in Feedback for Affinity Publisher V1 on Desktop
Find and replace with regular expressions Ability to save regular expressions with names (with all settings, i.e. replace field, paragraph styles, etc.). Without this option, working with it hardly makes sense. When I check a longer text I first run through about 30 different regular expressions. It's a lot of work when I have to type them into the search field and the replace field by hand every time. You should be able to see whether paragraph styles, character styles, etc. have been set. \n not working. \n should only find line breaks. Find and replace in general Show number of hits. "Replace" button, which only replaces, but does not look for the next hit. Often you want to check the first replacement. "Replace and Find" button, that is, what Replace is currently doing. "Search backwards" button. After replacing, gray out the entry in the list - or delete it completely. -
Thank you for your great work with regular expressions. It met my expectations and works well with Polish conjunctions. On the screenshots, you can see how regular expressions correct conjunctions at the end of the line. "Search and replace", where we enter the following expressions: Search for a regular expression: (\s[iuawzoIUAWZO])(\s) - for individual characters (\s(Do|W|We|Z|Za|Ze|I|O|U|A|do|w|we|z|za|ze|i|o|u|a))(\s) or (\s\b.{1,2}\b)\s - for longer words Tekst zastępujący: \1[Non Breaking Space - from the pop-up menu] The rules come from: https://swiatczytnikow.pl/jak-pozbyc-sie-wiszacych-spojnikow-w-calibre/ It would be useful to be able to save the rule in the Publisher. Maybe it exists and I did not find it? PS. Sorry for my English - Google translate
- 13 replies
-
- regular expressions
- polish
-
(and 3 more)
Tagged with:
-
There's a thread here about searching and replacing text that includes the following suggestion: To find and delete text, select "regular expression" In the text within the Find field, don't use parens. Use "\1" alone in the Replace field. This does work. For example I had ;h2\s+ for the "find" expression and "\1" alone for the replacement. All occurrences of ";h2" followed by 1+ space(s) were deleted. Yes, it works, but it seems like a bit of a hack. So... • Is there another approach to execute a global find-and-delete operation throughout a long collection of text in linked text frames? In nearly all of the word processors and text editors I've used, an empty replacement field means: "delete." Is there some reason it shouldn't also mean "delete" in Publisher? (Not meant as a rhetorical question.) • I found that with the cursor at the start of the text, sometimes pressing the Find button caused the cursor to advance to the first "found location," and sometimes the cursor remained at the start of the text. This appears intermittent and I can't predict when it will happen. I'm assuming it is a bug. If it isn't a bug, what would the reason be for the "variable" behavior?
- 5 replies
-
- text editing
- find and replace
- (and 4 more)