antons Posted April 23, 2023 Share Posted April 23, 2023 Are you using the latest release version? yes, 2.0.4 Can you reproduce it? Create a new design Add text with text style 'Heading 1' Add other text on a new line with text style 'Body' 'Find' with regex expressions on Change in 'Find/Settings/Format/Character/' the 'Font weight' to Bold Search for `.*` : it works Search for `.*$` (end $): it works Search for `^.*` (start ^): it crashes Does it happen for a new document? Yes If you cannot provide a sample document then please give an accurate description of the problem for example it should include most of the following: I tried switching hardware performance on and off - it still crashes In the meantime: are there other workarounds to find bold text ONLY if it is in the beginning of a line/paragraph? publisher_crash.mov Quote Link to comment Share on other sites More sharing options...
Old Bruce Posted April 23, 2023 Share Posted April 23, 2023 I would use ^.+ for the search string instead of your ^.* This means I would look for ^ The start of a line . anything + one or more instances of the "anything" instead of your ^ The start of a line . anything * zero or more instances of the "anything" Quote Mac Pro (Late 2013) Mac OS 12.7.2 Affinity Designer 2.3.1 | Affinity Photo 2.3.1 | Affinity Publisher 2.3.1 | Beta versions as they appear. I have never mastered color management, period, so I cannot help with that. Link to comment Share on other sites More sharing options...
antons Posted April 23, 2023 Author Share Posted April 23, 2023 Thanks Old Bruce, that's a very good point! My real use case is more complex than .*, but using + in place of * where appropriate fixes the crashes It creates another issue though: I'm searching for bold text in a particular paragraph style (Body), if the bold text is 'alone' in the line: My Bold Text everything works as expected, if the bold text precedes normal text: My Bold Text: Other non bold text It appears in the 'Find' results, but I can't click the result / clicking doesn't do anything - it doesn't jump to it in the file; clicking 'Replace' also doesn't do anything Quote Link to comment Share on other sites More sharing options...
Seneca Posted April 23, 2023 Share Posted April 23, 2023 6 minutes ago, antons said: but using + in place of * where appropriate fixes the crashes A regular expression, whether well-formed or malformed should not bring the program down. So I would submit this as a possible bug for the development team to look at. Old Bruce 1 Quote 2017 27” iMac 4.2 GHz Quad-Core Intel Core i7 • Radeon Pr 580 8GB • 64GB • Ventura 13.6.4. iPad Pro (10.5-inch) • 256GB • Version 16.4 Link to comment Share on other sites More sharing options...
walt.farrell Posted April 23, 2023 Share Posted April 23, 2023 You may not need the regular expression at all for that, if I understand what you're trying to do. Just leave the find field blank, and search for the font weight. But I would need more details on what you want to do with the text you find to say for sure. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.3, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.3 Link to comment Share on other sites More sharing options...
Staff Dan C Posted April 24, 2023 Staff Share Posted April 24, 2023 Hi @antons, Welcome to the Affinity Forums & thanks for your in-depth report! 20 hours ago, antons said: Create a new design Add text with text style 'Heading 1' Add other text on a new line with text style 'Body' 'Find' with regex expressions on Change in 'Find/Settings/Format/Character/' the 'Font weight' to Bold Search for `.*` : it works Search for `.*$` (end $): it works Search for `^.*` (start ^): it crashes 19 hours ago, antons said: It creates another issue though: I'm searching for bold text in a particular paragraph style (Body), if the bold text is 'alone' in the line: My Bold Text everything works as expected, if the bold text precedes normal text: My Bold Text: Other non bold text It appears in the 'Find' results, but I can't click the result / clicking doesn't do anything - it doesn't jump to it in the file; clicking 'Replace' also doesn't do anything I can confirm that I have been able to replicate both of these issues and I have logged these with our developers for you now. I hope this helps antons 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.