search string for "//pasword="
-
i need to search a string for "//password=" and have another string equal what comes after that so input=gyghgguy gy gyf gfy fy fk u//password=test pass=test
-
i need to search a string for "//password=" and have another string equal what comes after that so input=gyghgguy gy gyf gfy fy fk u//password=test pass=test
If you're using
std::string
s, then you can callfind
oninput
to locate the substring you're looking for (the rest is straightforward). Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
If you're using
std::string
s, then you can callfind
oninput
to locate the substring you're looking for (the rest is straightforward). Joaquín M López Muñoz Telefónica, Investigación y Desarrollosorry i am not sure how to use std::strings?
-
If you're using
std::string
s, then you can callfind
oninput
to locate the substring you're looking for (the rest is straightforward). Joaquín M López Muñoz Telefónica, Investigación y DesarrolloOr use Regular Expressions to find the string. -- See me: www.magerquark.de
-
sorry i am not sure how to use std::strings?
I think you will find it extremely useful to read some book about C++. For instance, Bruce Eckel's Thinking in C++ is very good for starters, plus you can download it for free! There you can learn how to use
std::string
s and a lot more. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo -
I think you will find it extremely useful to read some book about C++. For instance, Bruce Eckel's Thinking in C++ is very good for starters, plus you can download it for free! There you can learn how to use
std::string
s and a lot more. Joaquín M López Muñoz Telefónica, Investigación y Desarrollothanks for all you help i think i will get that book
-
i need to search a string for "//password=" and have another string equal what comes after that so input=gyghgguy gy gyf gfy fy fk u//password=test pass=test
If you are using the regular C-runtime libary with char* as your string you can use strstr(). This will search for a string inside of a string.