In any case, get rid of the "/" and its closer to real. Some people have more than two names in their full name. And on a set a little larger you could very well have something close to my second example.
http://linux.die.net/abs-guide/x19673.html
It took me about a year of use before I could figure out how to munge lines in it, so it's definitely not for the faint of heart. I use it for things like transforming excel spreadsheets into C struct arrays.
On the first line, you have "Roberto Carlos" followed immediately by a comma. On subsequent lines you have Roberto Carlos followed by two other names.
Also your example works fine if you use a different delimiter for your format vs for your input, e.g.
3 | ROBERTO CARLOS | SOCCER | BrazilSee other response as it works on word by word. Here is (hopefully) a better example:
Input:
35, Billy Jean, soccer, USA
29, Billy Jo Jean, football, USA
Transform-at: 35, soccer, Billy Jean, USA
You'll get: 35, soccer, Billy Jean, USA
29, Jean, Billy Jo, football
But I was expecting: 35, soccer, Billy Jean, USA
29, football, Billy Jo Jean, USA
It doesn't seem to play will with something like this as an input:
Format: Gives me: I can't seem to find a way to get it to parse that out properly (playing with the ROBERTO/CARLOS part.I even tried this as an input:
Format: Gives me: Edit: format