How to use substring-after operation in String Function Using XPath in Xml

In this article I will explain substring-after operation of string function.
  • 2137

Introduction

The String's substring-after function can be used to find the substring within the string and return the string that comes after the substring, that we specify in the argument. This function takes two arguments and returns the substring of the first string argument that follow the first occurrence of the second argument string. If the substring not matches than it return the empty string.

Syntax

string substring-after(string,string)

Hear substring-after is a function that takes the string argument and return the substring after the string.

Example

substring-after("23/01/2012","/")
substring-after("23/01/2012","01")
substring-after("23/01/2012","5")

Output

The output of the above function is as,

"01/2012"
"/2012"
" "

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.