Page 1 of 1

Can I use Auto correct with Regex ?

Posted: Fri Jul 25, 2014 4:28 pm
by baseteaguajara
I would like to make some special replacements and generalizations.

Can I use regexp with the utility Autocorrect ?

Have any similar option ?


Best Regards

Re: Can I use Auto correct with Regex ?

Posted: Fri Jul 25, 2014 4:35 pm
by floris v
As far as I know you can't use reg exp in autocorrect options. You will have to write a macro to regularly carry out those replacements semi-automatically.

Re: Can I use Auto correct with Regex ?

Posted: Fri Jul 25, 2014 5:04 pm
by baseteaguajara
Understood.

Not even an hybrid way or something partial ?

Best Regards

Re: Can I use Auto correct with Regex ?

Posted: Fri Jul 25, 2014 5:29 pm
by acknak
Sorry, only Edit > Find & Replace supports pattern matching.

Or you can make your own set of patterns to copy/paste into the Find & Replace slots, or you can try the AltSearch extension: it allows you to re-run substitutions stored in a configuration file.

Still not interactive, as-you-type, but maybe useful.

Re: Can I use Auto correct with Regex ?

Posted: Fri Jul 25, 2014 11:44 pm
by John_Ha
Try AutoHotkey. It is very powerful - at its simplest, you define one text string (eg "address"), and when you type it, AutoHotkey replaces it with another (1 High Street, Anytown ...).

Re: Can I use Auto correct with Regex ?

Posted: Sat Jul 26, 2014 5:09 pm
by OlivierR
Not even an hybrid way or something partial ?
Since LO 4.2, you can use wildcards. Use: .* at the beginning or the end of patterns.
https://bugs.freedesktop.org/show_bug.cgi?id=68373
https://bugs.freedesktop.org/show_bug.cgi?id=77603

Re: Can I use Auto correct with Regex ?

Posted: Sat Aug 02, 2014 9:17 am
by OlivierR
With LO 4.4, it will be possible to use double wildcards also, such as:

Code: Select all

.*to_replace.*
https://bugs.freedesktop.org/show_bug.cgi?id=81571
https://bugs.freedesktop.org/show_bug.cgi?id=55292