Hello,

I am using a regex of ^PRT\w+ to select device names to be the letters
PRT followed by at least one digit or letter and am finding that the
execution of regexec only classes names valid if they are PRT followed
by a W. In Regex syntax the \w is supposed to match to a digit or
"word character" and the plus sign means "one or more".

Am wondering if anyone knows what is wrong? I compiled the regex with
REG_EXTENDED + REG_ICASE + REG_NOSUB if that helps.

Regards,
-Paul

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.