Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string problem
#1
Hello everyone,
I'm a french programmer and I have a big problem.
I want to take only one side of this string but I don't now how to do.
x = "{"xxx.xx.xxx.x": [{'host': 'xxx.xx.xxx.x', 'protocol': 'tcp', 'portid': '1', 'state': 'filtered', 'reason': 'no-response'"
#I want keep this: 'protocol': 'tcp', 'portid': '1', 'state': 'filtered'
And the reponse can change.('protocol': 'Null', 'portid': '31', 'state': 'open') Wall Wall Wall
how could I do?
Thanks for your anwser.
Goodbyes
Reply


Messages In This Thread
string problem - by Mathisdlg - Aug-04-2020, 03:32 PM
RE: string problem - by Axel_Erfurt - Aug-04-2020, 04:36 PM
RE: string problem - by Donovan - Aug-05-2020, 01:59 AM
RE: string problem - by buran - Aug-05-2020, 04:23 AM
RE: string problem - by Mathisdlg - Aug-05-2020, 08:45 AM
RE: string problem - by buran - Aug-05-2020, 09:18 AM
RE: string problem - by Mathisdlg - Aug-05-2020, 09:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Convert string to float problem vasik006 8 3,425 Jun-03-2022, 06:41 PM
Last Post: deanhystad
  f string concatenation problem growSeb 3 2,274 Jun-28-2021, 05:00 AM
Last Post: buran
Question Problem with string and \n Falassion 6 2,706 Jun-15-2021, 03:59 PM
Last Post: Falassion
  how to deal with problem of converting string to int usthbstar 1 1,984 Jan-05-2021, 01:33 PM
Last Post: perfringo
  Unicode string index problem luoheng 6 3,052 Nov-23-2019, 03:04 PM
Last Post: luoheng
  simple string & input problem kungshamji 5 3,678 Jun-23-2019, 03:54 PM
Last Post: kungshamji
  Problem with inserting a string in to Sqlite db darktitan 3 4,518 Mar-03-2019, 06:30 PM
Last Post: stranac
  IP string manipulation problem TheRealNoob 12 7,338 Feb-04-2019, 09:29 AM
Last Post: perfringo
  problem in replace string into file Saeid_Bibak 1 2,083 Jan-20-2019, 09:46 PM
Last Post: Gribouillis
  String slicing problem Ollew 4 2,819 Sep-08-2018, 08:07 PM
Last Post: Ollew

Forum Jump:

User Panel Messages

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