Do we need to capture what is in this between? consider a title like: AIChE | American Institute of Chemical Engineers [2021] we need to remove [] and replace with -
Best wishes Mohammad On Sat, May 22, 2021 at 3:12 PM TiddlyTweeter <tiddlytwee...@assays.tv> wrote: > @TT > What is the regex to replace the below chars with `-` at thesame time > |, {, } > > In raw JavaScript the regex match could be: */[|{}]/* > The replace simply: */-/* > IF you want to change "[" and "]" too try: */[|{}\[\]]/* > I have NOT tested this so if there are issues let me know! > TT > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tiddlywiki+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/4ccfc5e7-a333-4ad8-99c4-466e30f5f185n%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/4ccfc5e7-a333-4ad8-99c4-466e30f5f185n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMAwM0O2mjpJYHneAbVkWzzcX8Pk01yJU7U0RMgLJ0NgaA%40mail.gmail.com.