Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: candycanearter07 Newsgroups: comp.editors Subject: Re: Confused first time Kate user Date: Tue, 2 Jul 2024 15:00:04 -0000 (UTC) Organization: the-candyden-of-code Lines: 26 Message-ID: References: Injection-Date: Tue, 02 Jul 2024 17:00:05 +0200 (CEST) Injection-Info: dont-email.me; posting-host="fd3b6d2859c3e2f1cf96e130951a01d5"; logging-data="1781671"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+DgU/daq22ngJHM/AhcLtTlnOG6vPKDolcOKfp+TzqNA==" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:G79Fu6nUyixVfuE3EYbgG2tGzPQ= X-Face: b{dPmN&%4|lEo,wUO\"KLEOu5N_br(N2Yuc5/qcR5i>9-!^e\.Tw9?/m0}/~:UOM:Zf]% b+ V4R8q|QiU/R8\|G\WpC`-s?=)\fbtNc&=/a3a)r7xbRI]Vl)r<%PTriJ3pGpl_/B6!8pe\btzx `~R! r3.0#lHRE+^Gro0[cjsban'vZ#j7,?I/tHk{s=TFJ:H?~=]`O*~3ZX`qik`b:.gVIc-[$t/e ZrQsWJ >|l^I_[pbsIqwoz.WGA] 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} -- user is generated from /dev/urandom