Source

wikdNode / scripts / splitBeforeRegex.groovy

The branch 'default' does not exist.

// @CacheScriptContent(true)
// @ExecutionModes({ON_SINGLE_NODE})


def mark = ui.showInputDialog(
	node.delegate, 'Enter regular expression to split node text before...', ''
)

new WikdNode().splitPlainText('(?=' + (mark ? mark : '') + ')')