spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 857103
    • 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 »
Look up Multiple Greek, Ancient Greek and Latin dictionaries — Οὕτω τι βαθὺ καὶ μυστηριῶδες ἡ σιγὴ καὶ νηφάλιον, ἡ δὲ μέθη λάλον· ἄνουν γὰρ καὶ ὀλιγόφρον, διὰ τοῦτο καὶ πολύφωνον (Plutarch)


 

Search Tools