It's not what your program can do, it's what your users do with the program.
Farakh khan wrote:oh, I got a point the *.rtf file output printing one email two times as emailto: [email protected] and then [email protected] that creates problem. Please check the following:
HYPERLINK "mailto:[email protected]"}{\rtlch\fcs1 \af37 \ltrch\fcs0 \f37\insrsid5575354 {\*\datafield 00d0c9ea79f9bace118c8200aa004ba90b0200000003000000e0c9ea79f9bace118c8200aa004ba90b5c0000006d00610069006c0074006f003a006a0065007200680065006d0069006e0070006800610072006d00610063007900400079006d00610069006c002e0063006f006d000000795881f43b1d7f48af2c825dc485 276300000000a5ab00000000}}}{\fldrslt {\rtlch\fcs1 \af36\afs20 \ltrch\fcs0 \f36\fs20\ul\cf2\insrsid5575354 \hich\af36\dbch\af31505\loch\f36 [email protected]}}}\sectd \
How can I fix it?
Farakh khan wrote:Thanks Henry for your favorable reply. I am looking for any clue/gesture from your end that can fix it.
I tried but in vain. The following code removes duplicate words but not email addresses. Please check this also: http://www.rubular.com/r/kn4ZMtBnny
Thanks again
Henry Wong wrote:
BTW, as a side note, do you understand what your email regex (ie.... "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?") does? and how it works?
Henry Wong wrote:
The reason I am asking is because your second regex is much simpler, yet you are struggling with it.... IMO, you should never ever use something that you don't completely understand. And you have a pretty ugly regex to deal with.
Henry
Farakh khan wrote:
Frankly speaking not at all but copied from an article on the web and I found it works perfect
You are right because I am newbie with regex topic. Can you please suggest something to fix it?
Farakh khan wrote:
I agree with you to stop and learn regular expression. I am working on it
Farakh khan wrote:The following code removes duplicate words but not email addresses.
Don't get me started about those stupid light bulbs. |