I've been trying to use the jquery match() function, but I'm not able to get anything I try to work...
Basically, I'm trying to match any string between parentheses:
(sample) (pokemon) (su54gar99)
... etc.
Tried this (the latest attempt... not sure how many I've gone through at this point...)
$('.acf').each(function() {
var ac = $(this);
ac.data('changed', false);
ac.data('alias', 'ac-real-');
ac.data('rx', /\s*\(\s+\)\s*/i);
ac.data('name', ac.attr('name'));
ac.data('id', ac.attr('id'));
ac.data('value', ac.val());
});