Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4035

regex help

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject regex help
Date 2011-12-08 22:51 -0500
Organization A noiseless patient Spider
Message-ID <jbs0l0$7nj$1@dont-email.me> (permalink)

Show all headers | View raw


OK, guys, I'll be the first to admit my regex knowledge is more than 
limited.   And I've never used ereg().

So, I need to convert the following ereg() call in some code I'm 
modifying to a preg() call.  Can someone please tell me what the ereg() 
does and the equivalent preg()?

if (ereg("(error</b>:)(.+)(<br)", $buffer, $regs))

TIA.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

regex help Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-08 22:51 -0500
  Re: regex help Denis McMahon <denismfmcmahon@gmail.com> - 2011-12-09 11:55 +0000
    Re: regex help Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-09 07:32 -0500
      Re: regex help Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-09 07:51 -0500
  Re: regex help Kim André Akerø <kimandre@nospambetadome.com> - 2011-12-09 14:16 +0100
    Re: regex help Jerry Stuckle <jstucklex@attglobal.net> - 2011-12-09 21:51 -0500
  Re: regex help Curtis Dyer <dyer85@gmail.com> - 2011-12-10 04:25 +0000
    Re: regex help Denis McMahon <denismfmcmahon@gmail.com> - 2011-12-10 10:01 +0000

csiph-web