Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules

Replace (.*) with (.*?). The question mark makes it ‘lazy’.

Also, replace ([0-9]{4}) with (\d+).

See http://www.regular-expressions.info/reference.html

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)