Caldav regular expression for negative lookahead and behind

Hi wondering how to use negative look ahead and lookbehind on the custom calendars option using Caldav.

Basically I’m trying to have a calendar sensor that excludes certain words while another calendar sensor includes those words

I looked at the code base and it uses the compile and match methods without using a raw string in the compile method which seems to make things more basic.

My use case: exclude all-day events.

I use the following configuration to exclude certain events:

...
custom_calendars:
      - name: vacation
        calendar: "My calendar"
        search: "Vacation"
      - name: main
        calendar: "My calendar"
        search: "^[^Vacation].*"
1 Like

Will try this thanks!