i tried with  regex_replace('^([0-9])\\.([0-9]*).*', '\\1.\\2')

but is there any other better way to do it
On Wednesday, October 25, 2023 at 6:16:34 PM UTC+5:30 Sameer Modak wrote:

> Hello Team,
>
> What is the correct way to extract just major version from full version 
> like ,
>
> full version is : 2.8.3
> need version: 2.8
>
> do we use split or regex 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7f71e811-5c05-483b-be5b-f50261860d82n%40googlegroups.com.

Reply via email to