\format[Replace(and,&)]{\author}
will output the "author" field after replacing all occurences of "and"
by "&"
\format[Replace(\s,_)]{\author}
will output the "author" field after replacing all whitespace
by underscores.
\format[Replace(\,,;)]{\author}
will output the "author" field after replacing all commas by semicolons.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | format(String fieldText)
Implements org. Failure Mode: Formatters should be robust in the sense that they always return some relevant string. |
| public void | setArgument(String arg)
Implements org. Method for setting the argument of this formatter. |
| regex | back to summary |
|---|---|
| private String regex | |
| replaceWith | back to summary |
|---|---|
| private String replaceWith | |
| Replace | back to summary |
|---|---|
| public Replace() | |
| format | back to summary |
|---|---|
| public String format(String fieldText) Implements org. Doc from org. Failure Mode: Formatters should be robust in the sense that they always return some relevant string. If the formatter can detect an invalid input it should return the original string otherwise it may simply return a wrong output.
| |
| setArgument | back to summary |
|---|---|
| public void setArgument(String arg) Implements org. Doc from org. Method for setting the argument of this formatter.
| |