in reply to Using regular expression to extract info from input line

Is it always "strand=" before the character you are looking for? Is it always only one character or could it be more or less (i.e. an empty string) ?

In case it is always a single character, simply have something like .*strand=(.) at the end of your regex.

Replies are listed 'Best First'.
Re^2: Using regular expression to extract info from input line
by biobee07 (Novice) on Mar 19, 2010 at 01:20 UTC
    Thanks a lot. It worked like a charm! Yes,my input line is the same in all the case, so I got the result I wanted.