Tóth István Zoltán
06/28/2024, 10:28 AMRedundant character escape '\\]' in RegExp
However, if I remove it, browsers complain about invalid regex.
Did I miss something?
private val imageLinkRegex = "!\\[[^\\[]+\\]\\([^)]+\\)".toRegex()
Klitos Kyriacou
06/28/2024, 11:25 AMhfhbd
06/28/2024, 11:46 AMRob Elliot
06/28/2024, 12:02 PMconst re = new RegExp("!\\[[^\\[]+]\\([^)]+\\)");
(i.e. no escape) for meRob Elliot
06/28/2024, 12:03 PMAdam S
06/28/2024, 12:52 PM