update on regex matching