The stupid question is the question not asked | |
PerlMonks |
Using index when the substring as is a regular expressionby rbi (Monk) |
on Mar 12, 2001 at 20:59 UTC ( [id://63849]=perlquestion: print w/replies, xml ) | Need Help?? |
rbi has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I would like to locate the position where one out of several possible substrings occours into a string. say I have strigs like: and I want to set my mask to catch: It would be like using index STR, SUBSTR, where SUBSTR is not a string, but some regular expression building a mask. How should this be done? Thanks in advance, Roberto
Back to
Seekers of Perl Wisdom
|
|