Regular Expressions: how to accept any symbol
To accept any symbol, .*
should do the trick.
E.g.: fields[i] = fields[i].replaceAll("\\<.*\\>", "");
Any char in regexp is "." the "*" - is quantifier, how many. Thus if you want just one char, then use "." (dot) and that's it.
Try this [^\>]*
(any character that isn't >
)