Template:Trim punctuation/doc

Removes trialing punctuation from a string, while preserving trialing full stops. Also removes trailing spaces.

A typical use would be to remove trailing punctuation from names or other fields in citations.

Based on w:Template:Trim brackets

Usage
Parameters:
 * text string

Characters removed

 * spaces
 * spaces
 * spaces

Examples

 * &rarr;


 * &rarr;


 * &rarr;


 * &rarr;