Re: [PHP] Re: Help with Regular Expressions

2004-08-15 Thread Octavian Rasnita
From: <[EMAIL PROTECTED]> > Hi all, > > I am working on a small php script which should do the > following. I want all the links in the page to be > preceded by first character and first two characters > of the link.Please look into the example below for > more > clarification. > > eg. > link here

[PHP] Re: Help with Regular Expressions

2004-08-15 Thread killu0007-widget
Hi all, I am working on a small php script which should do the following. I want all the links in the page to be preceded by first character and first two characters of the link.Please look into the example below for more clarification. eg. link here to be replaced as link here I guess, this i

[PHP] Re: Help with regular expressions

2002-01-25 Thread liljim
Hi Daniel, "José daniel ramos wey" ... > Hi! I´m new to regular expressions, and it seems to be an art to make it > work as expected. > > I´m trying to remove all "single-line" comments from an string - that´s > everything after "//" to the end of a line. I expected that this would do > the job:

[PHP] Re: HELP with Regular Expressions

2001-08-21 Thread Richard Lynch
> if (($hostname) || ($HOSTNAME)) { >$hostname= trim($hostname); >if ($HOSTNAME) > $hostname = trim($HOSTNAME); >if (!eregi("^[-a-z0-9-]+(\.[a-z0-9-]+)*$ ", $hostname)) { > print_error("your your hostname is invalid"); >} >$HOSTNAME = $hostname; > } Things I know a