Hi.
Referring to this example https://www.b4x.com/android/forum/t...ing-based-on-regex-pattern.83002/#post-525565
I would like to color two words in the same edit text with two different patterns. But when I apply the above example only one pattern works..how do I combine two patterns in the same edit text field
Regards...Here is my code
Referring to this example https://www.b4x.com/android/forum/t...ing-based-on-regex-pattern.83002/#post-525565
I would like to color two words in the same edit text with two different patterns. But when I apply the above example only one pattern works..how do I combine two patterns in the same edit text field
Regards...Here is my code
B4X:
Dim s As String = edtDose.Text
Dim cs As CSBuilder = MarkPattern(s, "\B(℗\w+)\b", 1)
edtDose.Text = cs
Dim y As String = edtDose.Text
Dim cs As CSBuilder = MarkRoute(y, "\B:)\w+)\b", 1)
edtDose.Text = cs
Last edited: