Re: [PHP] using preg_match

2007-05-16 Thread Chris
Ed Curtis wrote: I'm trying to use preg_match to find a string in a system path. What I need to do is see if the string '/realtors' exists in a variable named '$path'. I know '/' is used as a container within the command itself. How do I escape it to find the string '/realtors'? http://www

Re: [PHP] using preg_match

2007-05-16 Thread M.Sokolewicz
Ed Curtis wrote: Christian Haensel wrote: Hi Ed, did you try the backslash as escape character? That's what did it. I was thinking the \ was the escape for the command but wanted to make sure. Thanks! Why didn't you just test it yourself? Most people (well, I hope) would try it out, fi

Re: [PHP] using preg_match

2007-05-16 Thread Ed Curtis
Christian Haensel wrote: Hi Ed, did you try the backslash as escape character? That's what did it. I was thinking the \ was the escape for the command but wanted to make sure. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using preg_match

2007-05-16 Thread Christian Haensel
16, 2007 2:12 PM Subject: [PHP] using preg_match I'm trying to use preg_match to find a string in a system path. What I need to do is see if the string '/realtors' exists in a variable named '$path'. I know '/' is used as a container within the command itself

[PHP] using preg_match

2007-05-16 Thread Ed Curtis
I'm trying to use preg_match to find a string in a system path. What I need to do is see if the string '/realtors' exists in a variable named '$path'. I know '/' is used as a container within the command itself. How do I escape it to find the string '/realtors'? Thanks, Ed -- PHP General

Re: [PHP] Using preg_match to find Japanese text

2006-08-08 Thread Dave M G
Richard, Madoka, Thank you for your insights into searching for Japanese characters. I've decided to stick with searching for words as determined by the placement of spaces within the source text. Thank you for your time and advice. -- Dave M G -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Using preg_match to find Japanese text

2006-08-07 Thread Richard Lynch
On Sat, August 5, 2006 9:06 pm, Dave M G wrote: > While I'm only just learning about regular expressions in another > thread, I still seem to be finding exceptional situations which have > me > questioning the extent to which preg expressions can be implemented. > > (The following contains UTF-8 en

Re: [PHP] Using preg_match to find Japanese text

2006-08-06 Thread MOKULEN_IMADICA
Dear all and Dave, >I want to divide the first line into three variables, $word, $reading, >and $meaning. And I want to divide the second line into two variables, >$word and $meaning. What you(Dave) want seems to have some resemblance to what I tackled in last month.I tried to sort out some ja

[PHP] Using preg_match to find Japanese text

2006-08-05 Thread Dave M G
PHP list, While I'm only just learning about regular expressions in another thread, I still seem to be finding exceptional situations which have me questioning the extent to which preg expressions can be implemented. (The following contains UTF-8 encoded Japanese text. Apologies if it comes

[PHP] using preg_match to extract information from pop3

2003-03-04 Thread Henry Grech-Cini
Hi All, I know that you will probably tell me to RTFM but I have (several times) and I cannot quite understand it! So failing that I turn to you for help. I know that this is very trivial but please humour me. I have a line containing "From: Henry< henry @ .com >" (please ignore any spa