TiddlyWiki5/editions/tw5.com/tiddlers/filters/removeprefix.tid

32 lines
1.2 KiB
Plaintext

caption: removeprefix
created: 20140410103123179
modified: 20230711082842515
op-input: a [[selection of titles|Title Selection]]
op-output: those input titles that start with <<.place S>>, but with those characters discarded
op-parameter: a string of characters
op-parameter-name: S
op-purpose: filter the input titles by how they start, deleting that prefix
op-suffix: the <<.op removeprefix>> operator uses a rich suffix, see below for details
tags: [[Filter Operators]] [[String Operators]]
title: removeprefix Operator
type: text/vnd.tiddlywiki
<<.tip " This filters out input titles that do not start with S. For removing S without filtering out input titles that don't start with S, see [[trim|trim Operator]].">>
<<.from-version "5.2.2">>
The <<.op removeprefix>> operator uses an extended syntax that permits multiple flags to be passed:
```
[removeprefix:<flag list>[<parameter>]]
```
* ''flag list'': a comma delimited list of flags
The available flags are:
* ''casesensitive'': (default), this flag forces a case-sensitive match, where upper and lower case letters are considered different
* ''caseinsensitive'': overrides the default so that upper and lower case letters are considered identical for matching purposes
<<.operator-examples "removeprefix">>