In Czech language we have typography rule, that prepositions shouldn't be on the end of the line. I tried to find out if it also applies in English, but I guess not, as I found about it this reddit post.
I would like to correct language pack to follow the rule and replace whitespace after prepositions with
To make example for English speakers – I would like to find in language file (e.g. phpBB-3.3.12\phpBB3\language\en\install.php) following words (I will replace it later with Czech words):
I created the simple regular expression (for Notepad++):
Find:
Replace with:
and it seems to work, but it also find
I would like to correct language pack to follow the rule and replace whitespace after prepositions with
To make example for English speakers – I would like to find in language file (e.g. phpBB-3.3.12\phpBB3\language\en\install.php) following words (I will replace it later with Czech words):
the, of, a
I created the simple regular expression (for Notepad++):
Find:
\b(the|a|of)\s
Replace with:
$1
and it seems to work, but it also find
a href
. So the question is, how to find with regex the, of, a
but not a href
?Statistics: Posted by leschek — Sat Jul 20, 2024 2:55 pm