I need a regular expression that can be used with replaceAll method of String class to replace all instance of * with .* except for one that has trailing \
i.e. conversion would be
[any character]*[any character] => [any character].*[any character]
* => .*
\* => \* (i.e. no conversion.)
Can someone please help me?