[Solved] RegExp multipart phrase


You should be able to use the following :

  • match \\abc{([^}]*)}{([^}]*)}
  • replace by \1 : \2

You can try it here.

[^}]* matches every character but }, it is used to match the content of the brackets without risk of overflowing.

Aside from that we escape the \ to match its literal character, group the content of two brackets in their own capturing group to which we refer in the replacement pattern.

0

solved RegExp multipart phrase