Python Forum
Need quick help on a simple regex
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need quick help on a simple regex
#7
if they come as a single text:
1. split at new line ('\n'). you will get list of lines
2. loop over the result of the split and get one line at a time
3. split that line at space and get the currency and price as I show you. Print what you want inside the loop.
Now, start coding and show what you have tried...
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Need quick help on a simple regex - by Nwb - Jun-10-2018, 11:19 AM
RE: Need quick help on a simple regex - by buran - Jun-10-2018, 11:31 AM
RE: Need quick help on a simple regex - by Nwb - Jun-10-2018, 11:45 AM
RE: Need quick help on a simple regex - by buran - Jun-10-2018, 11:47 AM
RE: Need quick help on a simple regex - by Nwb - Jun-10-2018, 11:52 AM
RE: Need quick help on a simple regex - by buran - Jun-10-2018, 11:52 AM
RE: Need quick help on a simple regex - by buran - Jun-10-2018, 11:54 AM
RE: Need quick help on a simple regex - by Nwb - Jun-10-2018, 12:45 PM
RE: Need quick help on a simple regex - by buran - Jun-10-2018, 01:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A quick question teczone 4 3,162 Sep-06-2018, 03:44 PM
Last Post: snippsat
  Quick help! Ellisrb 2 2,886 May-02-2018, 11:21 AM
Last Post: ThiefOfTime
  quick way to convert in both 2 and 3 Skaperen 10 9,003 Nov-03-2016, 04:43 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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