R
R
Roman Rakzin2016-01-05 00:55:50
go
Roman Rakzin, 2016-01-05 00:55:50

How to escape special characters in golang or just through a regular expression?

How to escape special characters in golang or just through a regular expression?
You need to escape quotes and slashes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fastpars, 2016-01-05
@fastpars

Option 1:
"\\ \" \\n"
Option 2:
`\ " \n`
play.golang.org/p/Vy0JwIDUR0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question