Reg :Regex_search (or) regex_findall

10 views
Skip to first unread message

Heman Malve

unread,
Dec 18, 2020, 7:36:54 AM12/18/20
to Ansible Development
Hi Team,

Currently we are developing script to fetch tomact version & instances information from servers list.
1)Tomcat server path : /users/domains/tomcat/zz0003/zz0003_app/conf/tomcat.version
Would like to extract string zz0003_app (or) zz0003 (or) app from above line(1)
2) jdk version :/users/java/jdkx.x.x_xxx
Would like to extract string  jdkx.x.x_xxx  from above line  (2)

tried couple of ways to extract string using regex_search/regex_findall but not succeeded. Could you please suggest here? Thanks .

Regards
Heman Malve

Reply all
Reply to author
Forward
0 new messages