Replacement character

def self.readerXml(xmlpath)
str = "<?xml version=\"1.0\" encoding=\"gb2312\" ?> <note><![CDATA[hello world]]></note>"
s = /<?xml version=\"1.0\" encoding=\"gb2312\" ?> <note><![CDATA[/
str = str.gsub!(s,'')
return str
end

I want to return to the Hello World string. .
What should be achieved.

Started by Joan at November 09, 2016 - 3:22 PM

The first´╝ü

Posted by Don at November 22, 2016 - 4:13 PM