swift 3 problem with substring

Hello everyone, I have a problem when doing substring. I need to get a string “0x” and the next two characters. If the string is “SDdfsReY0x33Erdfg” I need to get “0x33”.


I guess it’s very simple but I’m new to swift programming and I can not understand how the ranges work. Excuse the syntactic and spelling errors.

Powered by WPeMatico


You may also like...

Comments are closed.