regex matching support
hello, thank you for a very good tool! he works nicely in my Notepad++ configuration
can you please add regex matching support?
example schema.ini:
Format=TabDelimited
ColNameHeader=True
Col1="animal_species" Text Width 15
Col2="animal_name" Text Width 11
;Col2="animal_name" RegularExpression ^[A-Z][aeiouy]
Col3="animal_uuid" Text Width 36
;Col3="animal_uuid" RegularExpression ^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$
Col4="owner_badge_md5" Text Width 32
;Col4="owner_badge_md5" RegularExpression ^[0-9a-f]{32}$
if column data not match RegularExpression his validation fails
Thanks for posting this, it's an interesting idea because it could validate all kinds of things like zipcodes, e-mail, product codes etc.
Although it's practically impossible for the plugin to automatically detect this kind of patterns, users would have to type these configuration lines by hand
;Col2="animal_name" RegularExpression ^[A-Z][aeiouy]
And the plugin would have to check for errors when the user enters an incorrct regular expression. I think the plugin really needs a proper user interface (instead of just a textbox) before I could add this kind of functionality.
So I don't think I'll add it any time soon, but it's a good idea I'll keep it in mind.
thanks you for reply BdR76 sir. i like text box interface and my idea is user manually enter regular regex expression like example. in essence, user write regular expression and CSVLint exclusively verify. CSVLint do not create regular expression in automatic way. maybe these are easier to implement?