• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting version number from user-agent

 
Jim Haley
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for a way to check the version number in the user-agent. I would like to get the version numbers so I can test if the version is greater than 5.1. Once 5.1.1 or 5.2 roll out I don't want to adjust my code. I was looking into using regular expression but was having some problems. Thoughts?

Here two examples of 2 user-agent strings
 
hemantha kumar k
Greenhorn
Posts: 27
Hibernate Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not about regex or any thing else, just it is a logic you have to think about it, you can get your output in many ways here it is one way you can achieve it

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic