in reply to Re: non-exact regexp matches
in thread non-exact regexp matches
/ACCAAC[ACGTacgtNn]{6}CTA[ACGTacgtNn]{1}ATG[ACGTacgtNn]{1,2}GATGTT/
this will print the position of the match in $buf, followed by 19 (the number of submatches). I want to be able to return a match from 17-19 submathes, not just all 19. Thanks. Vince$buf =~ m/(A)(C)(C)(A)(A)(C)([ACGTacgtNn]{6})(CTA[ACGTacgtNn]{1})(A)(T +)(G)([ACGTacgtNn]{1,2})(G)(A)(T)(G)(T)(T)(?{ print $-[0]," ",scalar@-,"\n"; })(?!)/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: non-exact regexp matches
by Abigail-II (Bishop) on Jun 23, 2004 at 20:57 UTC | |
by Anonymous Monk on Jun 25, 2004 at 15:14 UTC | |
by japhy (Canon) on Jun 25, 2004 at 15:22 UTC | |
by vinforget (Beadle) on Jun 25, 2004 at 16:37 UTC |