Hello to all,I'd like to be able to use the regex option, in the search and replace box, but regexes often involve the use of special characters accessed with the AltGr keyboard combination. Now, the effect of AltGr, in the search and replace boxes is to select everything in the box. And so if I try and type, say, [(\d)]{1,3} as a way of looking for page numbers between 1 and 999, then I get only as far as [( , the AltGr key selects everything, and so [( is then overwritten by \. I hope this is clear. It's a problem I sometimes have with web forms, too, so maybe this is something to do with my setup. Note finally that I can type my regex in the word processor window, then cut and paste to the search and replace box, as a workaround.Thanks in advance for any help here.G. R.

Concerning the RegEx: -1- I don't understand the brackets and the parentheses. \d is a shortcut for the set of decimal digits and doesn't need the brackets.(If you need [] and/or () as a syntactical markup for page numbers, your expression won't work.)-2- To get numbers of up to 3 digits exluding parts of longer numbers, you should use:

OK, thanks for your answer. It's really the alt gr problem that bothers me!You're right: I wasn't clear enough in explaining why I was using this RegEx. I had a series of page numbers indicated like this (101) that needed formatting for publication like this (p. 101), and so I was using the brackets as a capturing expression so that I can put "[(\d)]{1,3}" in the search, and "p. $0" in the replace box. Thanks for the advice excluding parts of longer sequences, too. I wouldn't have thought of that!Safe mode didn't work, unfortunately. Perhaps it's a keyboard setup thing, independently of OpenOffice or LibreOffice...

Hello,I've found the answer: not (directly) an OpenOffice LibreOffice problem. The problem is due to the keyboard parameter, in the system preferences. It's a bug that affects this parameter when it is set to "ibus".A little more information: I'm on Ubuntu 18.04 with Unity desktop. I get to the setting by going to "system settings" > "language settings" > "keyboard system" (or something similar -- my setup is in French so the precise terms may be slightly different). I get the choice of three "keyboard system settings": ibus (default), xim or nothing. "ibus" allows the user to type UTF characters directly or to switch from one keyboard to another easily, "nothing" does not allow this, and "xim" was very buggy, for me. So to sum up: either you use the "ibus" default, with more flexible keyboard usage, but a minor bug involving the AltGr key, or you don't need the extra keyboards, UTF, etc. and you switch to "nothing".G. R.

Concerning the RegEx;To get the found number as a group you can reference, you would need the (round) parentheses capturing it. If you work with the square brackets for a character set and a range quantifier like {1,3} you need that all inside the grouping parentheses. The parentheses surrounding the match being used as a markup for page numbers may be matched as zero-length assertions of lookbehind and lookahead type respectively. You might use