Search categorized characters on a string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Search categorized characters on a string

I have one big string full with data from a table and I need to convert it to a table ... The program should analyze what comes now and put it to the right "class or array whatever" . The info words like email or name,username have a comma between them so that you can at least understand what you are reading characters . now I have no idea where to start but I know that there is substr function but I am not searching for some specified words I need to filter them out ... help is needed

30th Jul 2017, 6:43 PM
Victor Cislari
Victor Cislari - avatar
9 Answers
0
can you please give example of that string..
2nd Aug 2017, 4:34 PM
Mohit Mehta
Mohit Mehta - avatar
0
personID,name,firstname,age(and so on ...), 34, "Rosella Burks ",22 (and so on maybe for about 50 lines or more
2nd Aug 2017, 6:19 PM
Victor Cislari
Victor Cislari - avatar
0
string1: name,age, number,city, string2: Mohit,21,999,delhi, like this in different different strings or everything in one string only ??
3rd Aug 2017, 12:18 PM
Mohit Mehta
Mohit Mehta - avatar
0
in one String only
3rd Aug 2017, 2:08 PM
Victor Cislari
Victor Cislari - avatar
0
ohk.. i will try
3rd Aug 2017, 3:07 PM
Mohit Mehta
Mohit Mehta - avatar
0
I am trying ... first goal to filter out words itself -> works with arrays but sometimes it just doesn't insert words in indexes and then it says undefined index 10 or 54 ... i don't find any logical problems The "logic filter" code consist of only 3 for loops ... very little
3rd Aug 2017, 3:12 PM
Victor Cislari
Victor Cislari - avatar
0
ok filtering works and now I am gonna show the data in a table and then it's all done
3rd Aug 2017, 9:14 PM
Victor Cislari
Victor Cislari - avatar
0
thx for your help thou
3rd Aug 2017, 9:14 PM
Victor Cislari
Victor Cislari - avatar
0
welcome..
4th Aug 2017, 4:19 AM
Mohit Mehta
Mohit Mehta - avatar