C
C#2y ago
Seventy

Extracting string from string?

I have a string that looks kinda like this:
string superCoolString = ""something.something.thisthing","something.something.thisthing","something.something.thisthing" etc..."
string superCoolString = ""something.something.thisthing","something.something.thisthing","something.something.thisthing" etc..."
And i need to get only the "thisthing" part how would i do that?
3 Replies
qqdev
qqdev2y ago
Split at , Get index of the last . Substring from there till the end I assume thisthing is not the same throughout the string?
Up
Up2y ago
where are you getting that string from? is it like, a json file? an HTML document? a CSV file? it seems to have a specific format so it's most likely not "some randomly generated string"
MODiX
MODiX2y ago
The XY Problem
Asking about your attempted solution rather than your actual problem
Want results from more Discord servers?
Add your server
More Posts