
gudhead
Novice
Jan 8, 2010, 10:47 AM
Post #1 of 3
(1397 views)
|
|
need to capture part of string!
|
Can't Post
|
|
hi, I have a string with lower and upper case letters. I need to capture upper case letters, for example, and possibly find where it starts and end in the string. Here is a sample data: "aaaaaaggggggggttttttttttttttggccgAAAAAATTTTTTTTCCCGGagggt" I have a bunch of these strings as lines of a file and I am interested in upper case characters A,C,G,T. I tried: while (<>){ $x =~/([ACGT]+)/; I know the capured string should be in $1. I need some help/guide
|