strText
@"~TOTAL TIME ~154.5
~ CLASS TIME (120 HOURS) -~145.00
~TOTAL HOURS~189"
strPattern
"(?<=CLASS TIME.*?~)[\d.,]+"
System.Text.RegularExpressions.Regex.Match(strText, strPattern).Value
"145.00"
strText
@"~TOTAL TIME ~154.5
~ CLASS TIME (120 HOURS) -~145.00
~TOTAL HOURS~189"
strPattern
"(?<=CLASS TIME.*?~)[\d.,]+"
System.Text.RegularExpressions.Regex.Match(strText, strPattern).Value
"145.00"