2

I need to add "." at the end of all my citation titles.

I want to use the Overleaf tool the works with cmd+F (ctrl+F in Windows), as it allows to change all the results of a search together.

Therefore the regular expression is title={.*.}, which should change to title={.*.}

How can I do it?

title={.*} works for the searching, but then I have to manually add "." to not lose the title.

10
  • ... okay, this is a regex question rather than a TeX question. Not sure if it's allowed here.
    – user202729
    Commented Dec 8, 2021 at 17:43
  • I was unsure as well. But then I saw the "overleaf" tag and I thought it was fine. Commented Dec 8, 2021 at 17:52
  • 1
    Anyway you will want to lookup "regex capturing group".
    – user202729
    Commented Dec 8, 2021 at 17:54
  • 1
    True, I added the parenthesis title={(.*)} and now it works! Thank you! Commented Dec 8, 2021 at 18:20
  • 2
    Hi, Tom from Overleaf Support. Using title=\{(.*[^.])\} and title={$1.} should do the trick, but as pointed out, this is a question of using regex searches. (And sorry for the article being slightly wrong, you don't need the outer /s in our current interface.)
    – yo'
    Commented Dec 8, 2021 at 18:20

0

You must log in to answer this question.

Browse other questions tagged .