1

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.

0

1 Answer 1

1

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, '[,:]')" />
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.