For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > April 2004 > How to find the location of a string matching?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to find the location of a string matching?
Kelvin @ SG

2004-04-29, 5:13 pm

Hi, there:

I need to find a function similar to InStr() in Visual Basic...I need to
return the location
where str1 appear in str1...

Which equation is that?

Kelvin



Carsten Aulbert

2004-04-29, 5:13 pm

Hi

Kelvin @ SG wrote:
> Hi, there:
>
> I need to find a function similar to InStr() in Visual Basic...I need to
> return the location
> where str1 appear in str1...


I don't no any VizzBasic but try
perldoc -f index

HTH

Carsten
Scott Bryce

2004-04-29, 5:13 pm

Kelvin @ SG wrote:

> Hi, there:
>
> I need to find a function similar to InStr() in Visual Basic...I need to
> return the location
> where str1 appear in str1...
>
> Which equation is that?


The function you want is called index().

Kelvin @ SG

2004-04-30, 1:36 am

Neat...thank you Carsten...

Kelvin

"Carsten Aulbert" <usenet.aulbert@welcomes-you.com> wrote in message
news:c6qnd3$f8ak0$1@ID-213226.news.uni-berlin.de...
> Hi
>
> Kelvin @ SG wrote:
>
> I don't no any VizzBasic but try
> perldoc -f index
>
> HTH
>
> Carsten



Kelvin @ SG

2004-04-30, 1:36 am

Thank you Bryce...

Kelvin



"Scott Bryce" <sbryce@scottbryce.com> wrote in message
news:1092588s997k573@corp.supernews.com...
> Kelvin @ SG wrote:
>
>
> The function you want is called index().
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com