Re: [PHP] Deleting multiple backslashes; regex?

2010-03-16 Thread Al
On 3/15/2010 5:03 PM, Jim Lucas wrote: Al wrote: Anyone have a regex pattern for deleting multiple backslashes e.g., \\\ I pretty good with regex; but, be damned if I can delete them with preg_replace() I've tried "" as the manual says preg_replace("//", '', $str); preg_replace

Re: [PHP] Deleting multiple backslashes; regex?

2010-03-15 Thread Jim Lucas
Al wrote: > Anyone have a regex pattern for deleting multiple backslashes e.g., \\\ > > I pretty good with regex; but, be damned if I can delete them with > preg_replace() > > I've tried "" as the manual says > > preg_replace("//", '', $str); > > preg_replace("/()+/", '', $str);

Re: [PHP] Deleting multiple backslashes; regex?

2010-03-15 Thread Al
On 3/15/2010 3:30 PM, Ashley Sheridan wrote: On Mon, 2010-03-15 at 15:35 -0400, Al Rider wrote: On 3/15/2010 3:11 PM, Ashley Sheridan wrote: On Mon, 2010-03-15 at 15:03 -0400, Al wrote: Anyone have a regex pattern for deleting multiple backslashes e.g., \\\ I pretty good with regex

Re: [PHP] Deleting multiple backslashes; regex?

2010-03-15 Thread james stojan
Double check your code I came up with the same solution as Ash did and it worked fine in Wamp. On Mon, Mar 15, 2010 at 3:30 PM, Ashley Sheridan wrote: > On Mon, 2010-03-15 at 15:35 -0400, Al Rider wrote: > > > > > > > On 3/15/2010 3:11 PM, Ashley Sheridan wrote: > > > > > On Mon, 2010-03-15 at 15

Re: [PHP] Deleting multiple backslashes; regex?

2010-03-15 Thread Ashley Sheridan
On Mon, 2010-03-15 at 15:35 -0400, Al Rider wrote: > > > On 3/15/2010 3:11 PM, Ashley Sheridan wrote: > > > On Mon, 2010-03-15 at 15:03 -0400, Al wrote: > > > > > Anyone have a regex pattern for deleting multiple backslashes e.g., > > > \\\ > > > > > > I pretty good with regex; but, be

Re: [PHP] Deleting multiple backslashes; regex?

2010-03-15 Thread Ashley Sheridan
On Mon, 2010-03-15 at 15:03 -0400, Al wrote: > Anyone have a regex pattern for deleting multiple backslashes e.g., \\\ > > I pretty good with regex; but, be damned if I can delete them with > preg_replace() > > I've tried "" as the manual says > > preg_replace("//", '', $str); > >