Iamthestig
Programmer
Hi,
can anyone help me convert this string:
'German. Speaks Spanish Fluently, Dutch Fluently, English Fluently, Italian Advanced, French Advanced.'
INTO
'German. Speaks Spanish, Dutch, English Fluently, Italian, French Advanced.'
The string could be any combination of languages, the only constants being 'Fluently' always precedes 'Advanced'. So I really want to replace all instances of 'Fluently' before the final 'Fluently' and all instances of 'Advanced' except the final 'Advanced'.
So 'Speaks Spanish Fluently, Italian Advanced' remains unchanged but 'Speaks Spanish Fluently, Dutch Fluently, English Advanced, Italian Advanced, French Advanced.' becomes
'Speaks Spanish, Dutch Fluently, English, Italian, French Advanced.'
Many thanks
can anyone help me convert this string:
'German. Speaks Spanish Fluently, Dutch Fluently, English Fluently, Italian Advanced, French Advanced.'
INTO
'German. Speaks Spanish, Dutch, English Fluently, Italian, French Advanced.'
The string could be any combination of languages, the only constants being 'Fluently' always precedes 'Advanced'. So I really want to replace all instances of 'Fluently' before the final 'Fluently' and all instances of 'Advanced' except the final 'Advanced'.
So 'Speaks Spanish Fluently, Italian Advanced' remains unchanged but 'Speaks Spanish Fluently, Dutch Fluently, English Advanced, Italian Advanced, French Advanced.' becomes
'Speaks Spanish, Dutch Fluently, English, Italian, French Advanced.'
Many thanks