igalic/puppetlabs-inifile — pull request #1 by johnsyweb (2014-11-08 09:15:03+00:00)
Title: Flexible key val

Hi @igalic,

I saw [your comment](https://github.com/puppetlabs/puppetlabs-inifile/pull/110#issuecomment-46665329):

> another nail to #93's coffin.

I'm not sure that https://github.com/puppetlabs/puppetlabs-inifile/pull/110 (or my proposed alternative, https://github.com/puppetlabs/puppetlabs-inifile/pull/134) prevents using colons as a separator. Indeed, the regular expressions become much simpler:

```ruby
@@SETTING_REGEX = /^(\s*)([^\s#{k_v_s}]*)(\s*#{k_v_s}\s*)(.*)\s*$/
@@COMMENTED_SETTING_REGEX = /^(\s*)[#;]+(\s*)([^\s#{k_v_s}]*)(\s*#{k_v_s}[ \t]*)(.*)\s*$/
```

I don't know if this is of any value to you but thought I'd share, anyway, since I was writing code in the vicinity.

Cheers;

_--paj_