Well, I did write it :D

Match does a str_match() style comparison. Easier, faster and sufficient in most instances.

Adam.

Sent from BlueMail

On 12 May 2016, at 19:07, "Pål Rydningen" <paal.rydningen@gmail.com> wrote:
That changes everything Adam! I was not aware that "regex" could be a test-keyword...
You got access to the source-code or something? ;)

Seriously tho - this did spur me into looking twice at things and a plain "storage_descr match C*" did the trick. 

On Thu, May 12, 2016 at 7:50 PM, Adam Armstrong <adama@memetic.org> wrote:
You can use regular expressions.

storage_descr regex /^c/ or something? :D

adam.

On 12/05/2016 18:41:57, Pål Rydningen <paal.rydningen@gmail.com> wrote:

CE scrub here; Yes it does - and this checker is a partial success to me:

Inline image 1

The only thing I still haven't figured out is how to match particular drive-letters.
When its listed as "C:\ Label: Serial Number 58edd0c8" - Im fumbling trying to find a way to match the beginning of the string and look for "C:"

I presume there is some magic involved with the "match" keyword and how to use it with a regex? 

_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

_______________________________________________
observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium




--
Pål R.


observium mailing list
observium@observium.org
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium