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
Post a Comment