Added regex-based histogram function using a capture group to LogResource.