Author Topic: Delimiter must not be alphanumeric or backslash  (Read 951 times)

0 Members and 1 Guest are viewing this topic.

Offline DjiXasTopic starter

  • Irregular
  • Posts: 3
    • View Profile
Delimiter must not be alphanumeric or backslash
« on: October 02, 2007, 04:37:42 AM »
Hello Everyone,

I am having some problems with the following code

Code: [Select]
$content=@file_get_contents($DOMAIN);

preg_match_all('index.php?article=(.*)', $content, $extract, PREG_SET_ORDER);

And I get error in preg match all line: Delimiter must not be alphanumeric or backslash

What's wrong with this code?

Offline effigy

  • Staff Alumni
  • Freak!
  • *
  • Posts: 7,301
  • Gender: Male
  • We must be the change we wish to see in the world.
    • View Profile
Re: Delimiter must not be alphanumeric or backslash
« Reply #1 on: October 02, 2007, 09:35:50 AM »
PREG patterns require delimiters. See this topic.
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/