cut-until-match(a,b,c)


Cuts away characters from a as long as the regular expression b is not fitting. If the regular expression never fit, an empty string is returned.

Description of Parameters

Parameter

Description

a

Value.

b

Regular expression.

c

(optional) true if the text should be cut from the right side. false if the text should be cut from the left side. Default: false

Examples

Parameter a

Parameter b

Parameter c

Result

000978456008918765

^[1-9].*

978456008918765

000978456008918765

^[1-9].*

false

978456008918765

000978456008918765

^[1-9].*

true

hello, world?!#***

.*\?$

true

hello, world?