« Return to the main article
You should use @RightBack(...) instead of @Right(...) because you get uncorrect extensions if a filename includes more than one '.'!
An example: Filename.something.doc returns "something.doc" instad of just "doc".
Furthermore, you should use @LowerCase(...) to support also extensions of "Doc", "DOC", dOC" etc.
You should use @RightBack(...) instead of @Right(...) because you get uncorrect extensions if a filename includes more than one '.'!
An example: Filename.something.doc returns "something.doc" instad of just "doc".
Furthermore, you should use @LowerCase(...) to support also extensions of "Doc", "DOC", dOC" etc.