Skip to Content
0
Jul 22, 2019 at 02:02 PM

Split string and loop each string to find special character and color

76 Views Last edit Jul 23, 2019 at 10:19 PM 2 rev

SCIENTIFIC NAME *PTEROPHYLLUM

SP ORIGIN *SOUTH AMERICA

BEHAVIOR *PEACEFUL.

FEEDING *PH(6.5-7) TEMP(24-28C) OMNIVOROUS

LENGTH *15-20 CM

Basically the string above is taken from database column, what i want to do is to color part of the string for each line after the special character ' * '