Skip to content

Some good filters

Liqueur Librazy edited this page Apr 27, 2017 · 4 revisions
  1. Get rid of the duplicate attribute modifiers!

(Simplified Chinese)

- !filter {
    isFullText: false,
    isRegBase64: true,
    mode: REMOVE_ALL_BUT_LAST_EXACT,
    name: combine_same_attr,
    regExp: XqHsWzAtOWEtZkEtRl1cc1srLV1cZCslP1xzLisk,
    replace: ''
}
- !filter {
    isFullText: true,
    isRegBase64: true,
    mode: REPLACE,
    name: remove_empty_line,
    regExp: KD9tcykuXiguP9TaLnsyfcqxo7opJA==,
    replace: JDE=
}
- !filter {
    isFullText: false,
    isRegBase64: true,
    mode: COMBINE_NEAR_MATCH,
    name: combine_empty_line,
    regExp: XlxzKiQ=,
    replace: ''
}
- !filter {
    isFullText: true,
    isRegBase64: true,
    mode: REPLACE,
    name: combine_hand,
    regExp: KD9tcyleKNTaKSguKcrWKMqxo7opJC5e1NooLsrWKcqxo7ok,
    replace: JDEkMiQ0JDM=
}

(English)

- !filter {
    isFullText: false,
    isRegBase64: false,
    mode: REMOVE_ALL_BUT_LAST_EXACT,
    name: combine_same_attr,
    regExp: '^§[0-9a-fA-F]\s[+-]\d+%?\s.+$',
    replace: ''
}
- !filter {
    isFullText: true,
    isRegBase64: false,
    mode: REPLACE,
    name: remove_empty_line_en,
    regExp: '(?ms).^(When\s[io]n[^:]+:)$',
    replace: $1
}
- !filter {
    isFullText: false,
    isRegBase64: false,
    mode: COMBINE_NEAR_MATCH,
    name: combine_empty_line,
    regExp: ^\s*$,
    replace: ''
}
- !filter {
    isFullText: true,
    isRegBase64: false,
    mode: REPLACE,
    name: combine_hand_en,
    regExp: '(?ms)^(When\sin)(.+)(\shand:)$.^When\sin\s(.+)\shand:$',
    replace: $1$2 or $4$3
}
Clone this wiki locally
You can’t perform that action at this time.