Ask Your Question
0

Delete between square brackets [closed]

asked 2013-03-09 08:34:03 +0100

flywire gravatar image

updated 2013-03-09 22:45:02 +0100

manj_k gravatar image

How do I delete all text between square brackets (including the square brackets) in calc cells throughout the document?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-26 15:45:27.969033

2 Answers

Sort by » oldest newest most voted
1

answered 2013-03-09 15:42:37 +0100

w_whalley gravatar image

In @mariosv's answer replace his [.*] with \[.*\]

edit flag offensive delete link more

Comments

Right Whalley, I copy form LIbreOffice the expressión, and the esc \ are not showed.

m.a.riosv gravatar imagem.a.riosv ( 2013-03-09 18:00:36 +0100 )edit

You can also use 4+ spaces to indent lines, which then gives syntax-highlighting (not so important in this case), monospace font, and (in most cases) no need to escape characters:

\[.*\]
qubit gravatar imagequbit ( 2013-03-09 18:52:00 +0100 )edit
1

answered 2013-03-09 12:44:21 +0100

m.a.riosv gravatar image

updated 2013-03-09 19:30:08 +0100

With find & replace (Ctrl+H),
in find: \[.*\]
in replace (nothing):
mark regular expressions,
Replace all.

edited: is needed \\ to show a \ here.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-09 08:34:03 +0100

Seen: 2,618 times

Last updated: Mar 09 '13