I have this string Red:255,Green:255,Blue:255
I am trying to get for example: the 255
value of red.
I am very new to regex and I have tried (?<=Red:\s).*(?=\s,)
but it does not work.
How do I achieve this?
I have this string Red:255,Green:255,Blue:255
I am trying to get for example: the 255
value of red.
I am very new to regex and I have tried (?<=Red:\s).*(?=\s,)
but it does not work.
How do I achieve this?
For java you can use this regex:
Red:(\d+),Green:(\d+),Blue:(\d+)
You can try here: https://www.freeformatter.com/java-regex-tester.html#ad-output