When user passes a directory name to my program, i check it against

```
private static final Pattern    DIRECTORY_PATTERN   
            = Pattern.compile("/*?([a-zA-Z_0-9]+)/*?",
                    Pattern.CASE_INSENSITIVE);

```

For what we've seen so far, this works, but i suspect this regex is incomplete.

Do you know of, or can you suggest a more complete regex, which would validate directory name?