From: "Peña, Botp" Date: 2008-12-04T13:01:57+09:00 Subject: Re: reg exp From: Hai anh Le [mailto:lhanh@wichiptech.com] # while element.size do # if element =~ /([Aa]|[Aa]n|[Tt]he)( [^ ]+)(?:[Aa]|[Aa]n|[Tt]he)?/ # then # temp_string = $1 +$2 # temp_array << temp_string # else # break # end # element.slice!(temp_string) # end if you like to walk thru the string manually, then stringscanner works best. otoh, you can also try string#split but my initial reaction was just to find those articles then mark them w newlines (maybe because i'm fond of programming w paper and pencil :) eg, >puts s.gsub(/([Aa]|[Aa]n|[Tt]he)\W+/){"\n"+$1+"\s"} A method for detecting a post-translationally modified protein with a glycosyl group comprising contacting the protein with a glycosyl transferase enzyme and a labeling agent, wherein the labeling agent comprises a chemical handle and a transferable glycosyl group.