mardi 7 janvier 2020

Ruby code adding single \ to escape #, instead of adding double slash to the '#'

ruby adding single \ to escape # instead of double slash

for example, the '#' in string 'sd@#' is preceded with single '\' like this 'sd@#' automatically. I think it should add '\\'(double slash) to escape '#'. Is it a bug in ruby syntax? if not is there a way to escape it manually

Please help

Aucun commentaire:

Enregistrer un commentaire