How do I find and replace space symbols at the beginning of a string?
This would find a space before and a space after some text. EDIT: LO 6.4.5.2 on Linux.
Maybe \sstring
, being string what the OP had in mind.
I see, thanks. May be a bug in both versions (mine, that select all spaces, and yours, that select before Enter).
\b
is for word boundary
I will test this a bit more.
EDIT: I tested on 7.1.8.1, and works as you wrote.
You surely mean paragraph instead of string?
FIND&REPLACE - regular expressions -
Finds the first space(s) of a paragraph:
^\s*
or
^\s+
or
^[:space:]*
More information:
https://help.libreoffice.org/latest/bs/text/swriter/guide/search_regexp.html
https://help.libreoffice.org/7.3/he/text/shared/01/02100001.html
https://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer
LibreOffice uses ICU terms:
EDIT
Changed link to regex LibreOffice, added link to wiki.
Or try \s\b
for Find by regular expressions
Hmm. Why the obsolete reference for v.4.4, when your previous link already contains a reference (at the bottom) to the up-to-date version of the same page?
Mike, you’re right. I corrected my answer…
Thanks for your hint.