J
Jayal
Hi
I am trying to perform a global search in a string using regular
expressions.
consider the string
"attgccgccgccatt"
If I wish to search for the string "ccgcc" within it, if I use the
operation given below, I would get only one find
$a =~ /ccgcc/g;
$location = pos......
which would be the find match.
What do I do if I want to get both occurances?
I also tried the index() function but that does not allow use of
regular expressions. Is there any function available for this?
Thank you in advance
Jayal
I am trying to perform a global search in a string using regular
expressions.
consider the string
"attgccgccgccatt"
If I wish to search for the string "ccgcc" within it, if I use the
operation given below, I would get only one find
$a =~ /ccgcc/g;
$location = pos......
which would be the find match.
What do I do if I want to get both occurances?
I also tried the index() function but that does not allow use of
regular expressions. Is there any function available for this?
Thank you in advance
Jayal