Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Regular Expression - What is [^/]*

Avatar of huffmana
huffmanaFlag for United States of America asked on
Unix OS
7 Comments1 Solution1346 ViewsLast Modified:
I'm refining AIDE on Solaris 9 and have a regexp that works but I can't figure out what the [^/]* is doing?

The configuration file contains one line:
        /export/home/huffmana/.*\.so(\.[^/]*)* TEST
or without the [ ] also works the same...
        /export/home/huffmana/.*\.so(\.^/*)* TEST

The /export/home/huffmana directory contains many files but the only ones with “so” in the filename are:
-rw-------   1 root     other       8483 Dec  7 19:10 so
-rw-------   1 root     other       8483 Dec  7 19:10 so.111
-rw-------   1 root     other       8483 Dec  7 19:08 test.so
-rw-------   1 root     other       8483 Dec  7 19:08 test.so.1
-rw-------   1 root     other       8483 Dec  7 19:08 test.so.1225
-rw-------   1 root     other       8483 Dec  7 19:08 test.so.a.b.c
-rw-------   1 root     other       8483 Dec  7 19:08 test.so.abc
-rw-------   1 root     other       8483 Dec  7 19:10 testso

The scan found the following files that meet the regular expression criteria and put them in the database:
@@db_spec name                      lname attr      perm  uid g id size   inode    lcount
/export/home/huffmana/test.so           0 2621 100600    0    1 8483 16139          1
/export/home/huffmana/test.so.1         0 2621 100600    0    1 8483 16142          1
/export/home/huffmana/test.so.1225    0 2621 100600    0    1 8483 16143          1
/export/home/huffmana/test.so.abc      0 2621 100600    0    1 8483 16141          1
/export/home/huffmana/test.so.a.b.c    0 2621 100600    0    1 8483 16148          1
@@end_db
ASKER CERTIFIED SOLUTION
Avatar of JohnK813
JohnK813Flag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answers