[oXygen-user] Search and Replace with regular expression

Franz-Josef Knelangen fjk at akgsoftware.de
Thu Oct 5 04:58:24 CDT 2017


The *real* expert was quicker 😊 – you find him in the imprint of nearly every converted eBook.



________________________________

AKG Software Consulting GmbH
Franz-Josef Knelangen


Uhlandstraße 12
79423 Heitersheim
Germany

Tel.: +49 (0)7634 5612-611
Fax: +49 (0)7634 5612-300
E-Mail: fjk at akgsoftware.de
Internet: www.akgsoftware.de<http://www.akgsoftware.de>

Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg)

Von: oXygen-user [mailto:oxygen-user-bounces at oxygenxml.com] Im Auftrag von Bernhard Kleine
Gesendet: Donnerstag, 5. Oktober 2017 11:28
An: oxygen-user at oxygenxml.com
Betreff: Re: [oXygen-user] Search and Replace with regular expression


Many thanks for this, Franz-Josef.

since you are seemingly an expert I would also like to know

how \index{Nerven>splanchnische} will become

<indexterm><primary>Nerven</primary><secondary>splanchnische</secondary></indexterm>,

a two parameter search
Merci vielmals in advance

Bernhard
Am 05.10.2017 um 09:05 schrieb Franz-Josef Knelangen:
Hello Bernhard,

that works w/o problems, if you mask the brackets during search and group the string you need in the replace, like:

Find: \\citep\{(.*)\}<file://citep/%7b(.*)/%7d>
Replace
 <citation><biblioref linkend="$1"/></citation>

Greetings,
Franz-Josef


[cid:image001.png at 01D33DD0.C82890F0]

[cid:image002.png at 01D33DD0.C82890F0]

Am 5. Oktober 2017 um 06:39:14, Bernhard Kleine (bernhard.kleine at gmx.net<mailto:bernhard.kleine at gmx.net>) schrieb:
Hi,

while porting from LaTeX to docbook5 I encounter numerous cases where a
regular expression search and replace would be extremely helpfull. E.g.
I have a citation as \citep{ABC65}. This should become
<citation><biblioref linkend="ABC65"/></citation>.

Is that possible in oxygen and how to achieve it?

Regards

Bernhard Kleine

--
spitzhalde9
D-79853 lenzkirch
bernhard.kleine at gmx.net<mailto:bernhard.kleine at gmx.net>
www.b-kleine.com<http://www.b-kleine.com>, www.urseetal.net<http://www.urseetal.net>
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09


_______________________________________________
oXygen-user mailing list
oXygen-user at oxygenxml.com<mailto:oXygen-user at oxygenxml.com>
https://www.oxygenxml.com/mailman/listinfo/oxygen-user



________________________________

AKG Software Consulting GmbH
Franz-Josef Knelangen


Uhlandstraße 12
79423 Heitersheim
Germany

Tel.: +49 (0)7634 5612-611
Fax: +49 (0)7634 5612-300
E-Mail: fjk at akgsoftware.de<mailto:fjk at akgsoftware.de>
Internet: www.akgsoftware.de<http://www.akgsoftware.de>

Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg)


--

spitzhalde9

D-79853 lenzkirch

bernhard.kleine at gmx.net<mailto:bernhard.kleine at gmx.net>

www.b-kleine.com<http://www.b-kleine.com>, www.urseetal.net<http://www.urseetal.net>

-

thunderbird mit enigmail

GPG schlüssel: D5257409

fingerprint:

08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20171005/3d7ae8b7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 113587 bytes
Desc: image001.png
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20171005/3d7ae8b7/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 117522 bytes
Desc: image002.png
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20171005/3d7ae8b7/attachment-0003.png>


More information about the oXygen-user mailing list