Title: [Plugin: WP-Stats-Dashboard] Wrong regular expressions
Last modified: August 20, 2016

---

# [Plugin: WP-Stats-Dashboard] Wrong regular expressions

 *  Resolved [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-stats-dashboard-wrong-regular-expressions/)
 * Thank you for your nice plugin.
 * I’m using WP-Stats-Dashboard 2.8.4.3 and I got a problem.
 * When “Interface language” is set to the language other than English in WordPress.
   com’s dashboard, It fails to get views all-time.
 * This problem is caused by the regular expression in wp-stats-dashboard/classes/
   util/WPSDUtils.php Line 466.
 * `preg_match('@<span>([0-9]+)</span> views all-time@', str_replace(',', '', $result),
   $matches);`
 * If it is changed as follows, this problem will be fixed.
 * `preg_match('@<li><span>([0-9]+)</span> .+</li>@', str_replace(',', '', $result),
   $matches);`
 * [http://wordpress.org/extend/plugins/wp-stats-dashboard/](http://wordpress.org/extend/plugins/wp-stats-dashboard/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Dave Ligthart](https://wordpress.org/support/users/daveligthart-1/)
 * (@daveligthart-1)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-stats-dashboard-wrong-regular-expressions/#post-2579300)
 * The fix is implemented in version 2.8.5.
 * Cheers
 *  Thread Starter [redcocker](https://wordpress.org/support/users/redcocker/)
 * (@redcocker)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-stats-dashboard-wrong-regular-expressions/#post-2579312)
 * Thank you, daveligthart!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WP-Stats-Dashboard] Wrong regular expressions’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-stats-dashboard_282e31.svg)
 * [WP-Stats-Dashboard](https://wordpress.org/plugins/wp-stats-dashboard/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-stats-dashboard/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stats-dashboard/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stats-dashboard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stats-dashboard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stats-dashboard/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [redcocker](https://wordpress.org/support/users/redcocker/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-stats-dashboard-wrong-regular-expressions/#post-2579312)
 * Status: resolved