<div dir="ltr"><div><div><div><div>Dear Ravi,<br><br></div>I think that you are taking entirely the wrong approach to the problem, and it would help if you stated your requirements up-front rather than presenting something that will very likely not work.<br><br></div>* Are you even able to run your regex pattern-matching against a string of "around millions of character"? In any reasonable amount of time, and with reasonable resources?<br></div><br>* Even assuming that the above would work, did you try searching Google for a solution to your issue:<br>     <a href="https://www.google.co.in/search?client=ubuntu&channel=fs&q=regex+pattern+matching+large+string&ie=utf-8&oe=utf-8&gfe_rd=cr&ei=YnPfVezgGqTv8wf0vaDYAg#channel=fs&q=perl+regex+iterate+over+number+of+matches">https://www.google.co.in/search?client=ubuntu&channel=fs&q=regex+pattern+matching+large+string&ie=utf-8&oe=utf-8&gfe_rd=cr&ei=YnPfVezgGqTv8wf0vaDYAg#channel=fs&q=perl+regex+iterate+over+number+of+matches</a> <br>might be of help (I am actively restraining myself from a <a href="http://lmgtfy.com">lmgtfy.com</a> link).<br><br></div><div>Regards,<br></div><div>Gora<br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 August 2015 at 16:32, RAVI KUMAR <span dir="ltr"><<a href="mailto:ravi.kumar@btech2009.iitgn.ac.in" target="_blank">ravi.kumar@btech2009.iitgn.ac.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Admin,<div>I would like to know in pattern matching when I am giving this to search in a big sequence file of "acgt"(around millions of character)</div><div><br></div><div><b>$dna =  gg+[actg]{1,7}gg+[agct]{1,7}gg+[agct]{1,7}gg+</b></div><div><b><br></b></div><div><b>$longprotein1 =~ /(\w)*?$dna/g    .... ( for position for particular match)</b><br></div><div><b><br></b></div><div>So it is gonna give me all possible matches. Suppose I get like 100's of matches, I would like to know all those 100 matches. Eg. What is my 51st search and how many characters are there in it etc.<br><br>Could you please help me through this? My research is related to genetic causes of cancer and I need this information very urgently. Lots of work is in abeyance due to this problem.</div><div><br></div><div>Greatly appreciate your valuable time.<br><br>Thank You</div><div><br></div><div><div><div><div dir="ltr"><div><br></div>warm Regards,<div>Ravi Kumar,<br><br></div><div>Ph. no. +917878317397</div></div></div>
</div></div></div>
<br>_______________________________________________<br>
Delhi-pm mailing list<br>
<a href="mailto:Delhi-pm@pm.org">Delhi-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/delhi-pm" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/listinfo/delhi-pm</a><br>
<br></blockquote></div><br></div>