# RegexColumnsReloaded (easily add regex columns or any kind of column)

**URL:** https://resource.dopus.com/t/regexcolumnsreloaded-easily-add-regex-columns-or-any-kind-of-column/20799
**Category:** Buttons/Scripts
**Tags:** script, regex, column, jscript
**Created:** [June 26, 2015, 5:18am UTC](https://resource.dopus.com/t/regexcolumnsreloaded-easily-add-regex-columns-or-any-kind-of-column/20799 "2015-06-26T05:18:46Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![playful](https://resource.dopus.com/user_avatar/resource.dopus.com/playful/32/26132_2.png) [@playful](https://resource.dopus.com/u/playful)
#### Post date: [June 26, 2015, 5:18am UTC](https://resource.dopus.com/t/regexcolumnsreloaded-easily-add-regex-columns-or-any-kind-of-column/20799/1 "2015-06-26T05:18:46Z")

</div>

There have been several regex column scripts in the past year.  
I was first wow'ed by this feature when I came across wowbagger's script. Since then, I have been experimenting with columns and writing several scripts to suit my needs. At the risk of crowding the space, I thought I would share this one because some features may interest others.

This is the core script that is used for [Columns: Movie Filename Database](https://resource.dopus.com/t/columns-movie-filename-database/20800) and [Columns: Books & Comics Filename Database](https://resource.dopus.com/t/columns-books-comics-filename-database/20801).

Tutorial  
There is a full tutorial on my new page about [Using File Names to Make a Database](http://www.dearopus.com/filename-database.html).

I'm really excited about this way of working with files and look forward to feedback and a fruitful discussion. Apart from direct feedback and brainstorming on this script, I am particularly interested in hearing your thoughts about using file naming conventions to manage metadata.

Features

1. Can be used for any kind of column: space is clearly marked in the script to easily add NON-regex columns

2. Columns should autorefresh when the name or the file changes

3. Clear prefix facilitates column selection in the Folder Format pane without affecting display names

4. The column definition can be configured with a number of properties, all optional  
See the [tutorial about column definitions](http://www.dearopus.com/filename-database.html#definingfields) or this image.

 ![](https://resource.dopus.com/uploads/default/original/3X/4/e/4ee1d91eb583f4bc82637ec44f4e682c646ba9ab.png)  

1. The simple data structure is directly addressable, eliminating the need for getters

Thanks to those who have answered questions at one time or another while I was playing with the scripts (tbone, Leo and Jon come to mind but I'm sure there are others).  
🙂

Download  
[RegexColumnsReloaded.js.txt](https://resource.dopus.com/uploads/default/original/3X/1/6/1670b5b34b3968f2782d53fe29c2fa2e463aa110.txt) (30.5 KB)

Changelog  
0.9.2 At tbone's request, changed the column prefix from RegexReloaded\_ to RegexReloaded.  
0.9.1 Added three properties (got these ideas from Apocalypse): fileOnly, dirOnly, fullCupValue.

---

_[View the full topic](https://resource.dopus.com/t/regexcolumnsreloaded-easily-add-regex-columns-or-any-kind-of-column/20799)._
