0

I have a standard .tex file and I use Kile on Ubuntu 16.04. My question is the following: I would like to find all strings with \label{***} and replace them automatically with \label{***_B}.

How can I go about doing that?

3
  • 3
    Does Kile has the possibility to search-and-replace using regular expressions? If so do \\label\{(.*?)\} as search text and \label{\1_B} as replace text. The (.*?) is a wildcard for "any text" which can be reinserted using \1. Commented Jan 16, 2018 at 11:38
  • 1
    Following up on @MartinScharrer's comment: Yes, Kile can do that. Edit -> Replace (Ctrl + R), select "Regular expression" from the "Mode" drop-down (just below the Replace-field). Commented Jan 16, 2018 at 11:45
  • @MartinScharrer Would you like to write up an answer? Commented Jan 16, 2018 at 16:46

0

You must log in to answer this question.

Browse other questions tagged .