Regular expression to find the date

2012-01-05 Thread paolo mazza
Hi All, I have to find the date in a text. If I use this Regular Expression, it finds the date (returns true) but it returns just the first chars of the date.. on mouseUp put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT put "((\d{2})|(\d))\/((\d{2})|(\d))\/((\d{4})|(\d{2}))" into MYSTRYN

Re: Regular expression to find the date

2012-01-05 Thread Bernard Devlin
I just want to offer the simplest solution first. If there's a reason why this won't work, please say. put "sfgsfg gsfgs g 05/01/2011 t trtr" into tText repeat for each word tWord in tText if tWord is a date then put tWord & cr after tFound end repeat put tFound Maybe you are just looking to ex

Re: Regular expression to find the date

2012-01-05 Thread Thierry Douez
Hi Paolo, I changed your regular expression; see below. Didn't check but should work. HTH Thierry 2012/1/5 paolo mazza > Hi All, > I have to find the date in a text. If I use this Regular Expression, > it finds the date (returns true) but it returns just the first chars > of the date.. > > o

Re: Regular expression to find the date

2012-01-05 Thread paolo mazza
Thank you Bernard, actually your LC solution is much readable compared to the Regular Expression thing. However I was trying to understand regular expression that sometimes are very useful. Thanks a lot Paolo On Thu, Jan 5, 2012 at 11:23 AM, Bernard Devlin wrote: > I just want to offer the simple

Re: Regular expression to find the date

2012-01-05 Thread paolo mazza
Thank you Thierry, your regular expression works. It was very kind of you. All the best Paolo On Thu, Jan 5, 2012 at 11:24 AM, Thierry Douez wrote: > Hi Paolo, > > I changed your regular expression; see below. > > Didn't check but should work. > > HTH > > Thierry > > 2012/1/5 paolo mazza > >> H

Sending hundreds of eMails

2012-01-05 Thread Dan Friedman
Hello! I have a client that wants to send hundreds of eMails - each one unique, customized to the recipient. Formatting the eMail is easy... but how do you send an eMail from within LC? revMail brings up their eMail client which is not what we want because (a) they would have to click "Send"

Re: Sending hundreds of eMails

2012-01-05 Thread Mike Bonner
You might have a look at www.troz.net/rev/stacks/SMTP_library_demo.rev On Thu, Jan 5, 2012 at 7:51 AM, Dan Friedman wrote: > Hello! > > I have a client that wants to send hundreds of eMails - each one unique, > customized to the recipient. Formatting the eMail is easy... but how do > you send a

Re: Sending hundreds of eMails

2012-01-05 Thread Mark Schonewille
Hi Dan, Obviously, you don't want to use Gmail. You'd be marked as a spammer and you'd be out of business soon. Tell your customer to get a decent web server and his own domain. Use some PHP scripts to which LiveCode can connect. Put the e-mail on the server, so you won't need to send it each

link colors

2012-01-05 Thread Chris Sheffield
Okay, this is driving me crazy! I may have found a bug, but I'm not entirely sure. Can someone help? I was messing around with link colors yesterday. Or, rather, I wanted to make the links in my text appear with the normal (default) link colors, but not be underlined. So I started playing with

Re: Regular expression to find the date

2012-01-05 Thread Peter M. Brigham, MD
I too am much in favor of using LC's text parsing rather than RegEx, which I admit is a prejudice (but one with foundation!). Beware, however, that the "is a date" function will return true for any number. I usually double-check this with something like: put "sfgsfg gsfgs g 05/01/2011 t trtr" i

Re: link colors

2012-01-05 Thread Chris Sheffield
Wow! I think I need some extra sleep or something. Just minutes after I posted this, i realized I had a line of code that was setting all the text in my field to black. So sorry for the alarm. Move along. Nothing to see here... On Jan 5, 2012, at 9:02 AM, Chris Sheffield wrote: > Okay, this

Re: Sending hundreds of eMails

2012-01-05 Thread LiveCode
Look into PHPList- it's a free, open source system for doing this, and has tons of other functionality you need, like tracking bounces, handling unsubscribes, etc. On Jan 5, 2012, at 6:51 AM, Dan Friedman wrote: > Hello! > > I have a client that wants to send hundreds of eMails - each one un

Re: Sending hundreds of eMails

2012-01-05 Thread Andrew Kluthe
When sending out registration and lost password emails and what not I found this service. Many of my emails were hitting peoples spam boxes. The easiest (although not free. $1.50/1000 emails) way to send bulk emails out that you know will hit their inbox is using postmarkapp.com . They have tons of

Re: Regular expression to find the date

2012-01-05 Thread Mike Bonner
If you decide to try a regex again (they give me headaches but sometimes work great) you could try the following. on mouseUp put "sfgsfg gsfgs g 05/01/2011 t trtr" into FULLTEXT put "(\d{1,2}\/\d{1,2}\/\d{2,4})" into MYSTRYNG put matchText(FULLTEXT,MYSTRYNG,VAR0) into MYRESULT put VAR0

Re: Regular expression to find the date

2012-01-05 Thread Thierry Douez
2012/1/5 paolo mazza > Thank you Thierry, > your regular expression works. It was very kind of you. > All the best > > Paolo > Hi again Paolo, Just for fun... Look at this new Reg exp. below and see how it matches more precisely dates... felice anno nuovo ! Thierry on mouseUp -- Bad:

Re: Regular expression to find the date

2012-01-05 Thread Mike Bonner
Wow. Ok, ignore the one I sent. On Thu, Jan 5, 2012 at 10:07 AM, Thierry Douez wrote: > 2012/1/5 paolo mazza > > > Thank you Thierry, > > your regular expression works. It was very kind of you. > > All the best > > > > Paolo > > > > Hi again Paolo, > > Just for fun... > > Look at this new Reg e

Re: Sending hundreds of eMails

2012-01-05 Thread David Beck
Hi Dan, The technique Mark describes is the same that we use. In our case we use CallPHP to facilitate calling the PHP function that sends the mail. We send tens of thousands of emails a day using this approach. We actually queue up the emails to be sent in a server side MySQL database, and th

Re: Sending hundreds of eMails

2012-01-05 Thread Dan Friedman
Mark, > I do this a few times every year. If you want, I can help you with it. > Assuming it it a commercial project, I won't do it for free but I think it > doesn't need to cost much. I tried this approach already but didn't get good results. The PHP return "success", but the eMail never g

Fwd: [Bug 9604] Various issues regarding compatibility between LC system date formats and OS X date preferences

2012-01-05 Thread Pete
There was a discussion recently on preventing SQL injections in LC. Here's an email I got from the support center on a bug/enhancement concerning this. -- Forwarded message -- From: Date: Thu, Jan 5, 2012 at 9:00 AM Subject: [Bug 9604] Various issues regarding compatibility betwe

Fwd: [Bug 9932] expose mysql_real_escape_string() function

2012-01-05 Thread Pete
Sorry guys, forwarded the wrong email in my last post re SQL injection - here's the correct one. -- Forwarded message -- From: Date: Thu, Jan 5, 2012 at 4:31 AM Subject: [Bug 9932] expose mysql_real_escape_string() function To: p...@mollysrevenge.com http://quality.runrev.com/sh

Re: Carriage Return in datagrid data

2012-01-05 Thread Pete
Thanks Mike, will do. On Wed, Jan 4, 2012 at 5:08 PM, wrote: > Pete, take a look at the datagrid tutorials. If I recall correctly there > are explanations and examples for how to manage non-fixed height rows of a > datagrid. > > Sent from my BlackBerry device on the Rogers Wireless Network > >

Re: Sending hundreds of eMails

2012-01-05 Thread Bob Earp
Dan, I had a similar situation whereby I wanted to send eMails to a list of registrants from a Joomla site, and although there is a mass mail feature in Joomla, my ISP limited the number of addressee's to 20 per eMail. I ended up throwing a stack together with the help of some of Sara's excelle

Re: Error in mail list MBOX file format

2012-01-05 Thread Alejandro Tejada
Hi Richard, The errors are only in lines 30525 and 31859 of the decompressed mailbox text file. Look at the messages that produced these error: http://lists.runrev.com/pipermail/use-livecode/2011-December/165634.html http://lists.runrev.com/pipermail/use-livecode/2011-December/165665.html The s

Re: Error in mail list MBOX file format

2012-01-05 Thread Peter M. Brigham, MD
I was the one who sent the first one listed below. I am using the Mac Mail application on a MacBook, OSX 10.6.8, Rev Studio 4.5.3, build 1210. Don't know why any of that should make a difference FWIW, in both messages the "From" is the first word of the text body. -- Peter Peter M. Brigham

Re: Sending hundreds of eMails

2012-01-05 Thread Andre Garzia
Once, I earned a living by sending emails. We sent millions per day. I was an employee of a email marketing company, our clients were companies like wallmart, readers digest and other retail stores here in Brazil. Our millions emails went just in-country. Believe me, sending massive amounts of emai

Re: Sending hundreds of eMails

2012-01-05 Thread Richmond Mathewson
Andre Garzia wrote: Once, I earned a living by sending emails. We sent millions per day. I was an employee of a email marketing company, our clients were companies like wallmart, readers digest and other retail stores here in Brazil. Our millions emails went just in-country. Believe me, sending m

Re: Sending hundreds of eMails

2012-01-05 Thread Erik Schwartz
Amazone SES now supports SMTP which kind of makes it a no-brainer. On Thu, Jan 5, 2012 at 6:51 AM, Dan Friedman wrote: > Hello! > > I have a client that wants to send hundreds of eMails - each one unique, > customized to the recipient.  Formatting the eMail is easy... but how do you > send an

SVGL Import tests

2012-01-05 Thread Alejandro Tejada
Hi all, Recently, I have been experimenting with the possibilty of adding import gradients to SVGL: http://revonline2.runrev.com/stack/112/SVGL I found a small, but annoying glitch while importing SVG files. Look at this image: http://andregarzia.on-rev.com/alejandro/stacks/SVGL_Import_Tests/SV