Questions tagged [strip]

"strip" refers to the process of removing (stripping) certain characters from a string. A common example is removing trailing whitespace characters.

1330 questions
-1
votes
1 answer

Strip tags using jQuery?

HTML:
link
I want to: FIND 'link' in 'a' and STRIP ALL parent tags except/until 'table'. I know its not the ideal way to do it, but sometimes you just can't modify the markup…
eozzy
  • 66,048
  • 104
  • 272
  • 428
-1
votes
1 answer

How to strip out special characters of a list in python?

I'm currently doing a project for class and I need a little advice/help. I have a csv file that I'm extracting data from. (I am not using the csv module because I'm not familiar with and the instructor warned us that it's complicated.) I've gotten…
user2188956
  • 11
  • 1
  • 1
-1
votes
2 answers

Javascript function to strip user ID from URL

i need a javascript function to strip the user ID from a given URL. for example. i have this URL http://www.example.com/member.php?id=100001877097904 how can i retrieve the ID of the user from that URL? Thanks in advance.
Jenny
  • 81
  • 7
-1
votes
2 answers

How to trim white space in MySQLdb using python

I have a web form taking user data and putting it into a mysql database. I need to trim leading and trailing blanks/spaces. I currently am utilizing the strip() method, but it only trims them for the fields, NOT for the mysql database. My code…
Michael Ferro
  • 47
  • 1
  • 5
-1
votes
2 answers

Need optimized XSLT recursive template to strip html tags.

I am using the following template for removing the html tags from my xml content. It is working for few of the xmls but failing for the few xmls, with stack over flow error due to the recursive call. Can anybody provide the optimized solutions for…
-1
votes
5 answers

strip defined character from string

im having a odd problem os my website, i have a script that records all the searchs and insert those search words on database, the problem is that since search engine robots started sneaking around my website, they make my script to produce search…
-1
votes
1 answer

InnoSetup strip executable

How do I reduce the size of the executable file InnoSetup? I tried StripReloc, but I do not understand how it works, you can tell me how to use StripReloc command line? Thanks.
Giacomo King Patermo
  • 829
  • 3
  • 13
  • 25
-1
votes
4 answers

sed and lazy search on specific html tag with id

How could I remove said html tag with sed? Example: What I tried: sed 's!
.*\?
!!g' In mind this should work according to this regex reference
user1263513
  • 91
  • 1
  • 8
-2
votes
5 answers

Using strip() to removed double quotes

Need help to strip double quotes from the variable a >>> a ' "AZ-EDH"' when following command is executed then only last double quotes are stripped >>> a.strip('"') ' "AZ-EDH' whereas when any of the following command is executed then both spaces…
Joel Divekar
  • 187
  • 1
  • 4
  • 19
-2
votes
1 answer

python I dont really understand how this function strip work

So I was writing this code where I needed to read lines of numbers from one file. After some lines there is gap in one line and it continue. I did read that strip will delete some white spaces on the start and at the end of the line. But I dont…
-2
votes
1 answer

How exactly the rstrip() function works in Python

Python's rstrip() function not returned output as expected. I would like to know the functionality behind this function. my_str = 'cisco.com' print(my_str.rstrip(".com") Expecting this result should be cisco but it returning cis.
-2
votes
3 answers

jq add character before and after every row JSON

I want print "[]" in every row with jq to make a big file json proof I…
Samuel
  • 1
-2
votes
1 answer

Which regex expression in python would work on this text?

> 1. string string2021-05-13T08:58:05.495string string string2. string string2021-05-13T08:58:18.443string string string3.string.... I want to separate the datatime stamp and the number followed by dot from the strings (strings don't have an extact…
Carol Vieira
  • 69
  • 2
  • 9
-2
votes
4 answers

Why is strip() not working with input in a function then being printed?

Yes, I do realize that this question has been asked many, many times, but on looking through those answers none seemed to answer my question. If you know of one that dose, link it for me and I will read it but I couldn't find one. I have a function…
neR
  • 1
  • 1
-2
votes
1 answer

Unable to remove blanks/tabs from string

I am using Python to build the logic. Facing the challenge in removing the whitespaces in the string. Actual code as below: searchExprLineWithoutSpace.replace(" ", "").strip()) Even i have triedwith lstrip, rstrip but no luck. Actual String in this…
ak0053792
  • 523
  • 1
  • 5
  • 18