03-16-2024, 01:13 PM | #1 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Word wildcard problem
Maybe that's the wrong forum, but I didn't find a better suiting one!
My problem: In many languages, especially french and italian, direct speech begins simply with a dash at the beginning of the paragraph, such as: Code:
Text, text, text: – Speech, speech... So, what I want to achieve is to find paragraphs beginning with "»", but not ending with "«" (some do, due to previous search and replace operations, so I have to mark this explicitely). To this end, I suppose I have to use wildcards. I tried for example: Code:
(»*[!«]^13){1} So, how can I restrict the search to first paragraph that begins with an opening chevron, but ends without a closing one? Is there a Word crack able to assist me? |
03-17-2024, 09:12 AM | #2 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Well, the Word wildcards are a thing very special...
Trying further, I found this one that works: Code:
Search for (with wildcards): (»*[!«])(^13) Replace with: \1«\2 |
Advert | |
|
04-19-2024, 10:27 AM | #3 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
For those to whom it may concern:
I found that my pattern above mentioned sometimes sets (for reasons I ignore) closing chevrons («) at the end of a paragraph that contains no opening chevron (») at all, and that are superfluous. To remove those, I invented this one: Code:
Search for (with wildcards): (^13[!»]@)« Replace with: \1 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
nginx rev pxy /w wildcard ssl cert - you are not authorized to view this site | alexauran | Server | 1 | 09-24-2019 03:45 AM |
Regex wildcard trouble | David Kudler | Sigil | 6 | 03-18-2016 12:02 PM |
Problem with word selection in C65 AfterGlow | edmond | Onyx Boox | 0 | 10-23-2015 01:22 PM |
Find and replace string with wildcard | jhempel24 | Sigil | 15 | 11-12-2010 02:50 PM |
Problem with Word 2003 TOC to PDF | Pablo | 0 | 03-23-2009 10:58 AM |