Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
factorise split
#1
Hi

I've general question, not just linked with python (sorry if off topic)

i've a split expression which works:
reason.split(" ")[3].split("(")[2].split(")")[0].split("%")[0]

The expression I want to split is like:
test STATE (64/100)(64%) test1 test2.....

is there any mean to optimize it?

Thanks for help
Alex
Reply


Messages In This Thread
factorise split - by enigma619 - Nov-02-2020, 12:44 PM
RE: factorise split - by perfringo - Nov-02-2020, 01:41 PM
RE: factorise split - by enigma619 - Nov-02-2020, 01:48 PM
RE: factorise split - by DeaD_EyE - Nov-02-2020, 01:50 PM
RE: factorise split - by enigma619 - Nov-03-2020, 08:28 AM

Forum Jump:

User Panel Messages

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