Search Result

Collapse
3 results in 0.0044 seconds.
Keywords
Members
Tags
strip
  •  

  • How do I split a text file without stripping the character I'm splitting at?

    Hi everyone, I'm new to python and would like to split a FASTA (text) file into each different gene (separated by a ">"), randomly sample a certain number of the sequences, and print the result. I have the program almost working correctly, but for some reason text.split('>') strips all of the ">"s from the file. If there's some way I can either remove this strip or add back in the ">" character that would...
    See more | Go to post
    Last edited by bvdet; Nov 5 '10, 06:01 PM. Reason: Add code tags

  • Dataflashsabot
    started a topic How to create animated gifs?

    How to create animated gifs?

    How might I convert a single bitmap containing multiple frames laid out in a strip into an animated gif with C#? I've searched for some time and can't find any way to do it.
    See more | Go to post

  • dgriff80
    started a topic strip html but keep ' & ""
    in PHP

    strip html but keep ' & ""

    hello all!

    I am using a form that a user can fill out but for security reasons I want html stripped out. If the user inputs html, I want it to kick back saying something to the fact that it had html removed. What I have works just fine with one exception, I want people to be able to use

    Code:
    <?php
    $RemarksPure = Trim(stripslashes($_POST['remarks']));
    $Remarks = addslashes(preg_replace('#</?\w[^>]*>#',
    ...
    See more | Go to post
Working...