RGB value from web

How to get variable R,G and B from web interface, for example 192.168.1.100/?R=255G=255B=255?
For one variable I using substring from a concrete character- substring(10) and it works. But I dont know
how get more variable.
Something like that (it's simplified): value R= number between "R=" and "G"
value G=number between "G=" and "B"
value B=number between "B=" to end

Can somebody help me? Sorry for my English.

long int rgb = whatEver;

r = rgb & 0xff;
g = (rgb >> 8) & 0xff;
b = (rgb >> 16) & 0xff;

Grumpy_Mike:

long int rgb = whatEver;

r = rgb & 0xff;
g = (rgb >> 8) & 0xff;
b = (rgb >> 16) & 0xff;

To OP, you'll want a tool like RGB Int Calculator to calculate this integer value.