In OpenOffice Calc how do I remove the last character if it is a dot?
Example:
dog
cat.
rabbit
It becomes:
dog
cat
rabbit
What regex would you use to obtain that?
Regular expression:
.
, you have to write \\.
, because .
has a special meaning in regular expressions. $
. Putting it all together, I would use this regular expression: \\.$
. This will match a dot if it's at the end of the line. Demo
Removing the matched dots:
Ctrl+H
Please see documentation of this Calc feature for further details.
在OpenOffice Calc中,如果最后一个字符是点,该如何删除?
=IF(RIGHT(A1)=".";LEFT(A1;LEN(A1)-1);A1)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.