Regular expression for string with color RGB values in C#

In this article, learn how to extract RGB color values from the string and create System.Drawing.Color object.


Regular expression for string with color RGB values in C#:

This can be achived by using Match() function of Regex class from System.Text.RegularExpressions namespace.

String “Color Sample [A=255, R=128, G=0, B=255]”:



– Article ends here –

Recommended:   IBM DB2 Database Connection String in C#
Share this:

Kiran is a Software engineer by profession and Enthusiastic blogger, love to write articles on computer technology and programming. Reach him at kiran.troubleshootyourself@gmail.com.

We will be happy to hear your thoughts

Leave a reply

Troubleshootyourself
Logo
Shopping cart