Regex: remove single brackets left and right

spiros · 1 · 1411

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 855844
    • Gender:Male
  • point d’amour
Regex: remove single brackets left and right
Code: [Select]
(?<!\[)(\[)(?!\[)
(?<!\])(\])(?!\])

These two will remove brackets from instances [like this] but not from instances [[like this]].
« Last Edit: 15 Oct, 2022, 16:59:08 by spiros »


 

Search Tools