Liste des Groupes | Revenir à c editors |
Richard Owlett <rowlett@access.net> wrote at 14:40 this Tuesday (GMT):I have a Debian machine with Kate Version 16.08.3 .
>
I wish to do a search & replace using regular expressions.
The "Help" menu has led to
https://docs.kde.org/stable5/en/kate/katepart/regular-expressions.html
and
https://docs.kde.org/stable5/en/kate/katepart/regex-patterns.html
>
I have strings of the form "XYZn" where n is one to three digits
representing values of from 1 to 299. I wish to replace all occurrences
with "abc".
>
The documents give essentially no examples.
>
Help please.
TIA
I'd recommend using an online regex generator like
https://regex101.com/.
This regex expression should do what you want:
[[:digit:]]{3}
Les messages affichés proviennent d'usenet.