Reputation: 793
I want to delete a set of characters which are behind a backslash in LibreOffice Calc. For example:
My/Name
Is/Jeff
where I would like to delete My
and Is
such that only /Name
and /Jeff
remain.
Does Libre's inbuilt functionality allow something like this or will I need to write some sort of script?
Upvotes: 4
Views: 9498
Reputation: 61915
Libreoffice/Openoffice Calc Find&Replace
is able using regular expressions.
So you can search for ^.*\/
= from start of line, all kinds of characters until last occurrence of slash...
and replace that with nothing:
Or if only till first occuring of slash and if the slash shall be remaining, then you can search for ^[^\\\/]*
= from start of line, all kinds of characters except slash...
and replace that with nothing:
Upvotes: 2
Reputation: 13819
Use this formula:
=RIGHT(A1, LEN(A1) - FIND("/", A1))
Breakdown:
In other words, count all the characters and subtract the position of the slash. That's how many characters we grab starting from the right-hand side.
Upvotes: 6