2015-01-26 14:42:22 +00:00
|
|
|
created: 20150126142522000
|
2015-02-24 16:41:16 +00:00
|
|
|
modified: 20150221193759000
|
2015-01-26 14:42:22 +00:00
|
|
|
tags: [[Filter Operators]] [[String Operators]]
|
|
|
|
title: splitbefore Operator
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
caption: splitbefore
|
2015-02-03 19:29:25 +00:00
|
|
|
op-purpose: select a delimited prefix from each input title
|
|
|
|
op-input: a [[selection of titles|Title Selection]]
|
|
|
|
op-parameter: a string of characters marking the end of the prefix
|
|
|
|
op-parameter-name: S
|
|
|
|
op-output: the prefix, up to and including <<.place S>>, of each input title
|
2015-01-26 14:42:22 +00:00
|
|
|
|
|
|
|
Each input title is processed in turn.
|
|
|
|
|
2015-02-03 19:29:25 +00:00
|
|
|
* A title that contains <<.place S>> contributes everything up to and including <<.place S>>.
|
|
|
|
* A title that doesn't contain <<.place S>> simply contributes itself to the output.
|
2015-01-26 14:42:22 +00:00
|
|
|
|
|
|
|
Contributions are [[dominantly appended|Dominant Append]] to the output.
|
|
|
|
|
2015-02-24 16:41:16 +00:00
|
|
|
The [[table-of-contents macros|Table-of-Contents Macros]] use this operator with `/` as the parameter.
|
2015-01-26 14:42:22 +00:00
|
|
|
|
|
|
|
<<.operator-examples "splitbefore">>
|