Thread: Regex examples
View Single Post
Old 03-17-2025, 04:47 PM   #771
Pavulon
Member
Pavulon began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2023
Device: Kobo Forma
Click image for larger version

Name:	gzwb.jpg
Views:	51
Size:	71.1 KB
ID:	214425
Click image for larger version

Name:	ejmj.jpg
Views:	59
Size:	307.5 KB
ID:	214426

Good morning,

Yes the spaces are due to the fact of the multiple copy-paste between the word processor, the translator and the absence of a code block.

In fact I was wrong, I thought it worked under Regex 101, because it automatically copies in the substitution area, I had not been careful. But in fact it is like in Sigil, it only finds with an occurrence of the chain, while I ask with or without.

I would have liked, as far as possible, with the same regex (because of course, I could treat in 2 passages):
- Find all links; Whether or not this first channel is (class or other)
- be able to modify, for example group 5 of all links
- Do not postpone the channel \ 1

The quantifier ? (0 or 1), only finds 1
the quantifier * (0 or more), does not match
The quantifier {0.1}, only finds 1

Thanks

Last edited by DiapDealer; 03-18-2025 at 10:20 AM. Reason: Thumbnailed oversized images
Pavulon is offline   Reply With Quote