Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 extract version in a string
#1
Hi,

I need help to extract only version in the following string.

str="psutil-5.4.5-cp27-none-win32.whl"

output should be : 5.4.5

Appreciate help on this.

Thx,
Lokesh
Quote
#2
What have you tried?

Never use str as name or you will be unpleasantly surprised.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Quote
#3
https://www.python.org/dev/peps/pep-0427...convention
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Extract email addresses from string and store them in a list oslosurfer 2 103 Nov-24-2019, 03:35 PM
Last Post: oslosurfer
  Need help to extract particular string lokesh 3 197 Sep-04-2019, 08:16 PM
Last Post: snippsat
  python3 List to array or string to extract data batchenr 4 484 May-28-2019, 01:44 PM
Last Post: buran
  Extract numbers from string ian 1 788 Apr-28-2018, 10:40 AM
Last Post: snippsat
  Can I upload a new version without previously deleting ancient version sylas 6 1,233 Nov-08-2017, 03:26 PM
Last Post: Larz60+

Forum Jump:


Users browsing this thread: 1 Guest(s)