This function is used to split the string between two patterns.
Here with example :
declare @inputstring varchar(max)=
'/mobileapi/property/postad.aspx?mode=postanad&deposit=100000&appversion=5.1&areaunit=Sq+Feet&TransactionType=rent'
declare @firstpattern varchar(max)='&deposit='
declare @secondpattern varchar(max)='&appversion='
select dbo.fn_split_btw_patterns(@inputstring,@firstpattern,@secondpattern)
Regards,
Vignesh Arulmani