Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Find element in array

by Anonymous Monk
on Feb 17, 2020 at 01:38 UTC ( #11113034=note: print w/replies, xml ) Need Help??

in reply to Find element in array

The secret-sauce that you need to read more about are the /g and /c modifiers of regular expressions. If you are looking for characters in a string which are not valid, and can devise a regex which identifies them, then these modifiers will let you loop through the same string multiple times finding all the matches. Yes, it turns your original approach to the problem precisely upside-down. There are lots of good examples elsewhere on the Internet, including some particular to DNA strings.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11113034]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2020-08-10 12:58 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (57 votes). Check out past polls.