rzward has asked for the wisdom of the Perl Monks concerning the following question:
Sorry if this question has been asked before.
The index function returns the position of the first occurrence of a substring in a string. Is there a regular expression version of the index function or is there a way to write a subroutine that would do this?
Thank you in advance for your help.
Richard
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is there a regular expression version of the index function?
by rob_au (Abbot) on Jun 20, 2004 at 12:16 UTC | |
|
Re: Is there a regular expression version of the index function?
by Sidhekin (Priest) on Jun 20, 2004 at 12:25 UTC | |
by rzward (Monk) on Jun 20, 2004 at 13:13 UTC | |
by rzward (Monk) on Jun 21, 2004 at 10:21 UTC | |
|
Re: Is there a regular expression version of the index function?
by Fletch (Bishop) on Jun 20, 2004 at 12:12 UTC | |
|
Re: Is there a regular expression version of the index function?
by muba (Priest) on Jun 20, 2004 at 17:17 UTC | |
by Roy Johnson (Monsignor) on Jun 20, 2004 at 20:21 UTC |