The problem I face is the follows:
I have a string which contains information which is in the following fixed information.
club {
level: 210
league: 128
staff: 1451
salary: 3452600
}
club {
level: 211
league: 121
staff: 1451
salary: 3452600
}
... and many more club {...}
I have many entries of club
. I want to be able to just extract all the numbers from ALL of the club
in a string in the following format.
Desired Output:
2101281451345260021112114513452600
I have the information in the string but I am not able to understand how to efficiently remove the repeating fields from the string such as level:, league:, staff:, club:, salary:, club {}
.
I would appreciate any help for a simple algorithm which achieves this.