Aparajita

Ah, I figured there was something but I wasnt sure what to look for (I have not done much regex work).

Thanks!

Michael S. Erickson, President
Automated Solutions Group
[EMAIL PROTECTED]


On Jun 13, 2007, at 5:59 AM, Aparajita Fishman wrote:

Using the following method, I correct pass when $key has one of the values

if(regex match("/(required|sort|Recipient| subject|Subject|submit)/";$key))

Using this method never returns true so it never entered this section:

if ( $key = "/(required|sort|Recipient| subject|Subject|submit)/" )

I made a mistake in the second one, it should be:

if ( $key =~ "/(required|sort|Recipient|subject|Subject|submit)/" )

=~ is the regex match operator.

Regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoylibrary.com


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to