SyntaxFix
Write A Post
Hire A Developer
Questions
Assuming they always exist and are not part of your data, this will work:
declare @string varchar(8000) = '23;chair,red [$3]' select substring(@string, charindex(';', @string) + 1, charindex(' [', @string) - charindex(';', @string) - 1)