I always use Henry Spencer's regular expression code. This solves the portability problem, and is often an enhancement to boot as the library functions on many systemsdo nott hndle full regular expressions.