Hi,Problem: Extract data from varchar field that is between the $ delimitersMy Solution (which works):CREATE TABLE #DataToParse (StringData varchar(100), TestCase varchar(100))INSERT INTO #DataToParse (StringData,TestCase)select 'lkasdjf s$xxxxxxxxx$lasdjf;kjaklj a;sdkjf','hidden in the middle' union all select '$asdkfjaskj xxx$' ,'no other data' union allselect 'aklsdfj ;kjasdf asklfj' ,'not there' union allselect ' $aksdjf as;dfkljy$' ,'at the end' union allselect 'lskdjf s$$laksdjf asdf' ,'no data between' union allselect 'asdfjsdf$kalsdjf askfj' ,'only one in the middle' union allselect '$ksdjf sk;dfj askdfj ' ,'only one at the beginning' union allselect 'ksdjf sk;dfj askdfj $' ,'only one at the end' union allselect '$$', 'just $$' union allselect '$', 'just $' union allselect 'klasdjfa$kasdjf$asldkjf asd$','three $s'select StringData, TestCase, Substring (StringData, charindex('$',StringData)+1, charindex('$',StringData, charindex('$',StringData, charindex('$',StringData)+1)) - charindex('$',StringData)-1) as Resultfrom #DataToParsewhere StringData like '%$%$%'I figured this out by reading about the string functions in the BOL. The thing is there might be a "Better* Way" to do this. I don't want somebody looking at my code and saying: Why did you do it that way, when you could have should have just done it "Better Way". So my question is: Is there a better way to do this?* I know better is a relative term.Thanks,Laurie