more regex hacks on custom attributes to do my evil bidding