Solution 1:

It's very simple.

//mind the indentation (trailing spaces)
groups:
    mygroup:
        ...
        permissions:
            // here put the normal permissions (on all worlds)
        worlds:
            worldname: // <- this is the world name (directory name)
                permissions:
                    ...

Source : Pex manual