Feature suggestion: Columns based on regex-ed filename

Hi Apocalypse,

For fun, made a quick version of RegexColumnsReloaded for your files.


ApocalypseColumns.js.txt (10.8 KB)

Ever since seeing wowbagger's script I've been a convert to regex columns. This one that I made has some built-in features that you might like since, like me, you're probably not a fan of JS regex (just about the worst regex flavor in the world)

The column defs took two seconds (just dumped your regex):

'PID' :    { 
    pattern: /\[(PID_\d*)]/,
    group: 1
    },

'numid' :    { 
    pattern: /\[(\d*)\]/,
    group: 1
    },

The group property for the capture group is optional (defaults to 0) but there are a number of other properties (see the defining columns section of the tutorial.

For instance, returnTheFirstNonEmptyGroup helps overcome the lack of lookbehind in JS. There are a number of cool tricks possible.

You might have moved on to bigger and better things but I had nothing better to do. :slight_smile:
If you have suggestions I'd love to hear from another regex lover.