codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Searching a string  hammertime at 04:41 on Thursday, April 24, 2008
 

Hello,

I'm trying to search through a string for certain letters, i.e. the string might be jaskdjflsstringjksalfd;dsa and I search for string.

Can someone please point me in the right direction?

Thanks.

  Re: Searching a string  mimir at 16:52 on Thursday, April 24, 2008
 

$sentence = "lets go for coffee";

if($sentence =~ /coffee/i)
{
print STDOUT "the string contains the word coffee.\n";
}












CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
• help - sketch
• Re: Perl Script - File Handling.
• Open a file from website
• Re: to open 5 terminals from one and also execute different commands on each terminal
• read a selected multiple line, those should match some of the values read in the files..
• Help me please
• Empty the contents of a file.
• Month Start, End dates
• show hide problem in dynamic table creation


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008