https://kotlinlang.org logo
#announcements
Title
# announcements
l

leonardootto

10/17/2017, 9:19 PM
*. become (.+?)\\. and *. become \1
g

groostav

10/18/2017, 9:22 AM
and
(
becomes
\(
and
{
becomes
\{
and on and on and on
and java doesnt even have a facility for this automatically, meaning I'd have to write it and writing a complete regex escaper might well be beyond my skill to write without bugs
also the default wrapping scheme in java is to surround things with a
\Qtextextext\E
, which might suffice for some situations but not mine, meaning I'd have to mangle the string into multiple sections surrounding them with \Q and \E if i wanted to use this strategy
3 Views