Re: Confused first time Kate user

Liste des GroupesRevenir à c editors 
Sujet : Re: Confused first time Kate user
De : candycanearter07 (at) *nospam* candycanearter07.nomail.afraid (candycanearter07)
Groupes : comp.editors
Date : 03. Jul 2024, 14:30:03
Autres entêtes
Organisation : the-candyden-of-code
Message-ID : <slrnv8ak85.4aj1.candycanearter07@candydeb.host.invalid>
References : 1 2 3
User-Agent : slrn/1.0.3 (Linux)
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote at 15:11 this Tuesday (GMT):
On 02.07.2024 17:00, candycanearter07 wrote:
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}
>
Doesn't that mean _exactly_ 3 digits? (The OP wanted 1-299, which
may be one up to three digits.) Some regexp parsers allow {,3} for
an up-to range (but that might mean 0-3, thus also not the desired
expression). Or you can explicitly specify the digits range {1,3}.
>
Janis


Ah right, sorry. I don't use regex that frequently.
--
user <candycane> is generated from /dev/urandom

Date Sujet#  Auteur
2 Jul 24 * Confused first time Kate user16Richard Owlett
2 Jul 24 +* Re: Confused first time Kate user7candycanearter07
2 Jul 24 i+* Re: Confused first time Kate user3Janis Papanagnou
3 Jul 24 ii+- Re: Confused first time Kate user1Richard Owlett
3 Jul 24 ii`- Re: Confused first time Kate user1candycanearter07
3 Jul 24 i`* Re: Confused first time Kate user3Richard Owlett
3 Jul 24 i `* Re: Confused first time Kate user2Kenny McCormack
3 Jul 24 i  `- Re: Confused first time Kate user1Richard Owlett
2 Jul 24 +* Re: Confused first time Kate user3Janis Papanagnou
3 Jul 24 i+- Re: Confused first time Kate user1Richard Owlett
3 Jul 24 i`- Re: Confused first time Kate user1Richard Owlett
3 Jul 24 `* CLARIFICATION [Re: Confused first time Kate user]5Richard Owlett
5 Jul 24  `* Re: CLARIFICATION [Re: Confused first time Kate user]4Lawrence D'Oliveiro
5 Jul 24   `* Various forms of Regexps in tools (standard and non-standard) (was Re: CLARIFICATION ...)3Janis Papanagnou
5 Jul 24    `* Re: Various forms of Regexps in tools (standard and non-standard) (was Re: CLARIFICATION ...)2Lawrence D'Oliveiro
6 Jul 24     `- Re: Various forms of Regexps in tools (standard and non-standard) (was Re: CLARIFICATION ...)1Janis Papanagnou

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal