Wild Card in Regular Expression

Tags:

#1 Deleted user

Is there a way to put a wildcard in a regular expression? Here is an example of my Headerline that I need to set:

Jun 11 16:10:05 tst-tst01-rp adevents: ---Begin event transaction---

So I have this for my headerline, but it doesn't seem to work:

Headerline /^\w\w\w \d\d \d\d:\d\d:\d\d \w\w\w-\w\w\w\d\d-\w\w adevents: ---Begin event transaction---/

I was hoping to be able to use a wildcard like this, but it doesn't work:

Headerline /^*---Begin event transaction---/

Thanks for your time.

#2 Zhengshi Nxlog ✓ (Last updated )
#1 Deleted user
Is there a way to put a wildcard in a regular expression? Here is an example of my Headerline that I need to set: Jun 11 16:10:05 tst-tst01-rp adevents: ---Begin event transaction--- So I have this for my headerline, but it doesn't seem to work: Headerline /^\w\w\w \d\d \d\d:\d\d:\d\d \w\w\w-\w\w\w\d\d-\w\w adevents: ---Begin event transaction---/ I was hoping to be able to use a wildcard like this, but it doesn't work: Headerline /^*---Begin event transaction---/ Thanks for your time.

Something more like the following:
HeaderLine /^.+---Begin event transaction---/

Edit: I should also mention that the built-in regex is PCRE compatible so when you are testing, keep that in mind.