Regex: remove single brackets left and right

spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 848747
    • 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