You are welcome Mike.

What Shawn said; it should not be too far from a quick web-search to find an
example of exactly what you want.

Regarding groups, you can add your username to the www (or whatever) group and
that should take care of it if group-permissions are set properly, and they
should be.

I am diving into udev programmativaly and from the sysadmin perspective. The
sysadmin stuff is great for drives, etc. The programmatic part needs to work
with the sysadmin part so that permissions are granted to hot-pluggable
devices (USB). But I am authoring software that will have to query udev for
particular hardware (say, a GPS dongle, a VR headset/tracker, etc) and take
action. There are great examples of this on Github.