Skip to main content
added 106 characters in body
Source Link
tenken
  • 18.4k
  • 2
  • 39
  • 57

The API page you've linked describes the format of the $patterns argument:

$patterns: String containing a set of patterns separated by \n, \r or \r\n.

These are types of carriage returns, in different Operating Systems.

Sooo .... did you try:

 $pattern = "portfolio/*\nphoto-blog";
 // or
 $pattern = "portfolio/*\rphoto-blog";
 // or
 $pattern = "portfolio/*\r\nphoto-blog";

EDIT:

 // for platform portability heh
 $pattern = "portfolio/*" . PHP_EOL . "photo-blog";

The API page you've linked describes the format of the $patterns argument:

$patterns: String containing a set of patterns separated by \n, \r or \r\n.

These are types of carriage returns, in different Operating Systems.

Sooo .... did you try:

 $pattern = "portfolio/*\nphoto-blog";
 // or
 $pattern = "portfolio/*\rphoto-blog";
 // or
 $pattern = "portfolio/*\r\nphoto-blog";

The API page you've linked describes the format of the $patterns argument:

$patterns: String containing a set of patterns separated by \n, \r or \r\n.

These are types of carriage returns, in different Operating Systems.

Sooo .... did you try:

 $pattern = "portfolio/*\nphoto-blog";
 // or
 $pattern = "portfolio/*\rphoto-blog";
 // or
 $pattern = "portfolio/*\r\nphoto-blog";

EDIT:

 // for platform portability heh
 $pattern = "portfolio/*" . PHP_EOL . "photo-blog";
Source Link
tenken
  • 18.4k
  • 2
  • 39
  • 57

The API page you've linked describes the format of the $patterns argument:

$patterns: String containing a set of patterns separated by \n, \r or \r\n.

These are types of carriage returns, in different Operating Systems.

Sooo .... did you try:

 $pattern = "portfolio/*\nphoto-blog";
 // or
 $pattern = "portfolio/*\rphoto-blog";
 // or
 $pattern = "portfolio/*\r\nphoto-blog";