Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: extracting x from '(x)' as an integer number
Post: RE: extracting x from '(x)' as an integer number

The Data lines reading is like "Floss Names included: White(2),310,320,321,322(4),500,900" This is what I ended up with, NOTE, I just started learning Python 2 days ago so not very elegant: #########...
Hwolff1962 General Coding Help 3 923 Mar-23-2023, 02:50 PM
    Thread: extracting x from '(x)' as an integer number
Post: RE: extracting x from '(x)' as an integer number

well poop, found a simple solution new_soup6 = re.sub('[^A-Za-z0-9]+', '', new_soup5) **shy**
Hwolff1962 General Coding Help 3 923 Mar-22-2023, 02:54 AM
    Thread: extracting x from '(x)' as an integer number
Post: extracting x from '(x)' as an integer number

I have a file and I figured out how to extract and strip the line per line data I need from it but...I end up with the numbers representing individual colors like this: White (2), 150, 151, 310, 319,...
Hwolff1962 General Coding Help 3 923 Mar-22-2023, 02:42 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020