Skip to content

Tag: string

Edit CSV file with Python

I have a CSV that looks like this String1 and string2 does NOT contain the characters ” or , variablelengthstring1 and variablelengthstring2 does NOT contain the characters ” or , The output file should look like this So I want to remove the last 6 chars on each line, i.e. “,”No”…

Change date format of these string using Python

I have a string from a pdf that I want to transform it to the date format that I want to work with later, the string is 05Dec22 how can I change it to 12/05/2022? This is what i tried so far Answer If you execute the code you’ll get the following error, this is because your time string is

how to define selection condition in regex in python

I am having a string in which some binary numbers are mentioned. I want to count number of occurrence of given pattern, but I want set my pattern above 7 digits of character, so the result should show only more than 7 characters. it means how I can set my pattern selection, so it should count only 7 digits an…

How to concatenate strings in python?

I am doing automation in python for jira with the addition of jql search inside the service As a result: two JQL queries, one to search for “closed tickets” and the second to search for “created tickets” But as a result, I can’t add rows now. Expected Result: I got two lists insi…