Re: parse a string for certain words

From: NC (nc_at_iname.com)
Date: 02/28/05


Date: 28 Feb 2005 10:21:06 -0800

Mosher wrote:
>
> I was wondering if php can parse a text string for certain words and
> return "true" if that word is found.

You shouldn't be wondering. Reading The PHP Manual is considered
by many to be a more efficient use of time. This should get you
started:

http://www.php.net/strpos

Cheers,
NC



Relevant Pages

  • Re: Too many open files on OpenBSD
    ... It seems you recursively call parse, ... about reading whole file content in a string by File.read, ... def parse() ...
    (comp.lang.ruby)
  • Re: Learning the fretboard..
    ... Sight reading at a higher level entails recognition of musical ... is your default handling of two whole steps along a string, ... -Start with a major triad, in root position, with the root on the ... There is only one way to play this triad. ...
    (rec.music.classical.guitar)
  • Re: Help With PyParsing of output from win32pdhutil.ShowAllProcesses()
    ... None to a string). ... Still have an urge to parse with pyparsing? ... pyparsing Dict class. ... keys from the parsed data, so it looks like you are already thinking ...
    (comp.lang.python)
  • Re: *Fast* way to process large files line by line
    ... line and parse it. ... reading file loop> marshalling> parsing. ... the disk I am using is an LVM mapped ext3 local disk. ... Btw will using something like an mmap extension for ruby speed things ...
    (comp.lang.ruby)
  • Re: *Fast* way to process large files line by line
    ... First a couple of stupid things that I am doing, ... line and parse it. ... reading file loop> marshalling> parsing. ... And there is no point in making it worse by accessing multiple files at the same time. ...
    (comp.lang.ruby)