I have a string 223,23:50:45. I want to extract 223 23 50 and 45 separately. How to do it? And also i would like to add a string to each of the sub string after they are extracted.
1 Answer
XML = structure
XML is a mark-up language to describe and structure data. You can do programming in XML.
Programming language
Every programming language has function to manipulate string. Knowing that it should not be difficult to find a split()/tokenize() or similar function.
Manipulating XML is often done with XSLT, then you can use tokenize():
<xsl:variable name="text">223,23:50:45</xsl:variable>
<xsl:value select="tokenize($text, '[,:]')" />