Category "python-re"

finding CDRs in NGS data

I have millions of sequences in fasta format and want to extract CDRs (CDR1, CDR2 and CDR3).I chose only one sequence as an example and tried to extract CDR1 bu

How can I find why re finditer is missing one item in the search

I have been trying to use re finditer to return four items, however it only return three. How should I modify the search in my re? 1). string: '''contet_o= "ALI

How to use Python Regular Expressions so that my program only loads in files that have 'formatted' in the title?

I am trying to use python to load in certain excel files that have 'formatted' in the title. I am attempting to use Python regular expressions to do this; howev

Extracting numbers from a string with a special structure with regular expressions

I have a string with the structure Resolution: 1200, Time: 16.255 (7.920 GFlop => 1487.23 MFlop/s, residual 0.007113, 500 iterations) and I am trying to ef

extracting number with decimal points from text extracted from pdf files

I need to extract only numbers with a decimal point from the following string. I used re module but faced a problem with a number of commas(there can be no comm

Python regex remove dots from dot separated letters

I would like to remove the dots within a word, such that a.b.c.d becomes abcd, But under some conditions: There should be at least 2 dots within the word, For e

How to replace the list of decimal numbers in a string with another list of decimal numbers?

I need to replace the list of decimal numbers in a string with another list of decimal numbers. The following is a first try, that changes all decimal numbers w

Email Verification using re.search Python

Need help making email verifications with the variable 'pattern' and making it so that it loops if it doesn't contain whatever is within the pattern. Required t

how to use re.sub to replace matches with a series of numbers

I'm trying to remove all HTML tags from a text file and after some processing on the text , I have to put the HTML tags back in the text, So i thought maybe rep