Skip to content

Commit 66925e4

Browse files
authored
Fix escaping (#524)
1 parent de37db2 commit 66925e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/setup/citationkeypatterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Generally, modifiers are applied in the order they are specified. In the followi
108108
* **`:truncateN`**: Truncates the string after the N:th character and trims any trailing whitespaces. For example, **`[fulltitle:truncate3]`** will convert `A Title` to `A T`.
109109
* **`:sentencecase`**: Changes the first character of the first word to uppercase, all remaining words are converted to lowercase. Example: `an Example Title` will be converted to `An example title`
110110
* **`:regex("pattern", "replacement")`**: Applies regular expression pattern matching and replacement. For example,
111-
* **`[auth.etal:regex("\\.etal","EtAl"):regex("\\.","And")]`** will extract the last name of the first author, and the last name of the second author, if there are two authors or .etal if there are more than two. The first `regex()` replaces `.etal` with `EtAl`. The second `regex()` replaces any `.` between entries with two authors with `And`.
111+
* **`[auth.etal:regex("\.etal","EtAl"):regex("\.","And")]`** will extract the last name of the first author, and the last name of the second author, if there are two authors or .etal if there are more than two. The first `regex()` replaces `.etal` with `EtAl`. The second `regex()` replaces any `.` between entries with two authors with `And`.
112112
* **`:(x)`**: The string between the parentheses will be inserted if the field marker preceding this modifier resolves to an empty value. The placeholder `x` may be any string. For instance, the marker **`[VOLUME:(unknown)]`** will return the entry's volume if set, and the string **unknown** if the entry's `VOLUME` field is not set.
113113

114114
### Formatters

0 commit comments

Comments
 (0)