I have these variables: file_path="/home/dir/file.xml" string="<host mac='0A:00:DD:D2:00:02' name='vfp-20vr' ip='10.10.1.122'/>" This is the content of f
for example: if the user enters : ( 23+22+43) I want the function to do exactly the following : for(int i =0; i <strlen(x);i ++) { if (x[i]=='+') {
So I have actually worked out how to change the first word but the problem is its not just changing the first word only. So i have a file such as : 2 0.268278 0
I have a list of paths which have multiple numerical parts within them, here is part of it: 'C:\\Python\\Python310\\Scripts\\mockup_test\\17mm.JPG', 'C:\\Python
A follow up to my previous question here. I realize I need to be more specific regarding my regex case to get an answer that works for my case. I am fighting w
My data contains text strings with three important features, an id number separated by":" and a starting date and an end date. I need to get these tree numbers
I try to create a string extension with the method Space(int) in it. If I have an instance of a string, then its no problem. But without I have no Idea. The cal
I have a string or a &str of ASCII characters and I want to separate it into a Vec of all substrings with contiguous identical characters (for example, "aab
I'm new at python and right now i try to make similar calculator with user input. I rewrote my code but its still dont work fine. Cant convert string property t
I was solving this question(the title) and I cant find the mistakes present so please help Input : The buffalo is stuck in a soggy field and
I intend to echo the string if the string isn't longer than 20 characters. But it's not working even though the string isn't longer than 20 c
Hi recently I was writing a code which basically askes users to input a cost for any item. The item name or price are not important so far. How the system works
I have a piece of software that generates a rather large text file full of information about files in a directory. There are often several thousand files. Each
I am looking to search each value in a pandas series to see if it contains one of many possible sub strings. What is the best way to check multiple str values a
I have a dataframe (df) in R and I want to create a new column (city1_n) that contains a line stored in the list key whenever there is a partial match between c
I am currently working on big data in pyspark.I need to do a record linkage.I have seen some implementations in pandas using record linkage library.I would like
I'm trying to load a dictionary into json but I'm getting error. strsdc = ''' {"ext":{"amznregion":["useast"],"someURL":"https://som_url.com/x/px/Iyntynt/{
I have a string text and a list names I want to split text every time an element of names occurs. text = 'Monika goes shopping. Then she rides bike. Mike likes
I have a data frame, like so: data.frame(director = c("Aaron Blaise,Bob Walker", "Akira Kurosawa", "Alan J. Pakula", "Alan Parker", "A
I want it to raise an exception and print Invalid input if the input string is not separated by commas. However, this is not raising an exception. try: stri