473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

remove particular word from a string which is inside a list

list = ['Name: 0/RP0 Descr: Network Convergence System 1000 Controller', 'Name: 0/FT0 Descr: Network Convergence System 1004 Fan', 'Name: 0/FT1 Descr: Network Convergence System 1004 Fan', 'Name: 0/FT2 Descr: Network Convergence System 1004 Fan', 'Name: 0/PM0 Descr: Network Convergence System 4000 2KW AC PSU 2', 'Name: 0/PM1 Descr: Network Convergence System 4000 2KW AC PSU 2', 'Name: 0/SC0 Descr: Network Convergence System 1000 Controller']

i want to remove "name:" and "descr:" from the above list

result should be :
['0/RP0 Network Convergence System 1000 Controller', '0/FT0 Network Convergence System 1004 Fan', '0/FT1 Network Convergence System 1004 Fan', '0/FT2 Network Convergence System 1004 Fan', '0/PM0 Network Convergence System 4000 2KW AC PSU 2', '0/PM1 Network Convergence System 4000 2KW AC PSU 2', '0/SC0 Network Convergence System 1000 Controller']
Jan 29 '18 #1
1 2264
abeLuna
13
What programming language do you want to write this in?
Apr 5 '18 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: werdna.sivad | last post by:
Is there a function in PHP that will remove a blob from inside a string. Similar to the substr() function, but instead of giving me the string I want it to remove the string. For example, I...
2
by: Larry C | last post by:
Hello, I have an XML doc and I am trying to write a utility thath will allow me to change a particular word with my "title" section of theXML doc. I would like to look for a "word" in the title...
1
by: Luis Esteban Valencia | last post by:
Is it possible to implement mouseover on a particular word in a datagrid (not mouseover on the entire cell)? For instance, assuming tha I have a 'Definitions' MSSQL table as such: Definitions...
6
by: Srikanth | last post by:
Hi, list.remove(item) removes the first item from the list, but how do I say to remove a particular index from a list without using it's value? Let's say I have 4 items in my list as And...
4
by: Michael Yanowitz | last post by:
Hello: If I have a long string (such as a Python file). I search for a sub-string in that string and find it. Is there a way to determine if that found sub-string is inside single-quotes or...
6
by: Lisa | last post by:
I am reading in data from a text file. I want to enter each value on the line into a list and retain the order of the elements. The number of elements and spacing between them varies, but a...
3
by: divina11 | last post by:
How do I go through Multiple tables (tables 1-20) to search for a particular word e.g. "first" and then print the results (i.e. table name & column name which contains the word "first"). Not sure...
1
by: avik1612 | last post by:
Hi all, I am trying to write a perl script to find a particular word in all text files in a particular directory and if that particular word is found in that textfile a mail shouldbe send that...
3
by: kushal49 | last post by:
Hi, I need to count a particular word in a string in sql server 2000. Anybody please help me out in this...
8
by: Netwatcher | last post by:
Hello, i am trying to make a program that recognizes a certain word from a list (as shown below), My main problem is- how do i make something that finds if the word from the given list is inside...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.