Cant convert HEX
I'm trying to convert this color " #E5AA70" not sure why when it run through r it get this error
![](https://utfs.io/f/1f688537-8e1e-4c88-867d-594d639c46a8-4pl4mu.png)
![](https://utfs.io/f/361584da-7c57-4746-a33f-bc0369ef39e9-4pl4mu.png)
12 Replies
Angius#1586
REPL Result: Success
Result: int
Compile: 473.281ms | Execution: 21.937ms | React with ❌ to remove this embed.
This is sus in your example
![](https://utfs.io/f/a254b378-a8f2-4e70-a95d-472a4b11aac3-4pl4mu.png)
Looks like leading whitespace
okay let me see
.Trim()
it just to make sureI think there is
![](https://utfs.io/f/ecb0dcf7-3e03-40bf-99a6-f166772c9d93-4pl4mu.png)
like this ?
![](https://utfs.io/f/6c633bb0-f810-4020-9a9d-c675cf4ad2af-4pl4mu.png)
hex = hex.Replace(...).Trim();
it work thanks weird avatar anime guy (send me the girl name would be awesome)
Tanya Degurechaff from Youjo Senki
@TotechsStrypper Better way you can use
Yeah, that'd probably be better
Assuming there's no whitespace anywhere else