javascript - Please write this simple regexp for me -


I tried to do some things but I can not get a job regex. Javascript Lookup does not seem to work. I have the following output of the version information:

  version: 1.0 Java SDK -------- Java version "1.7.0_45" OpenJDK Runtime Environment (RHL-2.4.3.4. 6_5 -x86_64 u45-b15) OpenJDK 64-bit server VM (Build 24.45-B80, mixed mode) ` 

me

  1.0  

Does anyone have the idea of ​​how to get it through regex? Thank you in advance!

You can use the capturing group. In the first capture group, the string 1.0 ,

  version: \ s * ([\ d.] +)  


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -