RE: [Flashcoders] How to handle String the best way

2010-07-23 Thread Cor
Thanks Steven! Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks Sent: donderdag 22 juli 2010 23:43 To: Flash Coders List Subject: Re: [Flashcoders] How to handle String the best way

RE: [Flashcoders] How to handle String the best way

2010-07-23 Thread Cor
I found this one, so maybe you are interested too: http://lawrence.ecorp.net/inet/samples/regexp-intro.php -Original Message- Sent: donderdag 22 juli 2010 23:43 To: Flash Coders List Subject: Re: [Flashcoders] How to handle String the best way http://www.regular-expressions.info

[Flashcoders] How to handle String the best way

2010-07-22 Thread Cor
Hi List, I am trying to find how to best compare 2 strings(word by word). I have 2 texts, one fully written and one abbreviated. The texts have exactly the same amount of words and they are in the same order. So in the text field one word is highlighted. The user has to fill in the abbreviation

RE: [Flashcoders] How to handle String the best way

2010-07-22 Thread David Hunter
@chattyfig.figleaf.com Date: Thu, 22 Jul 2010 09:46:58 +0200 Subject: [Flashcoders] How to handle String the best way Hi List, I am trying to find how to best compare 2 strings(word by word). I have 2 texts, one fully written and one abbreviated. The texts have exactly the same amount of words

RE: [Flashcoders] How to handle String the best way

2010-07-22 Thread Cor
...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter Sent: donderdag 22 juli 2010 14:50 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] How to handle String the best way Not entirely sure if i understand what you want to do

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Matt S.
Can you give us two actual String samples, of text A and text B, that you're trying to compare? .m On Thu, Jul 22, 2010 at 3:46 AM, Cor c...@chello.nl wrote: Hi List, I am trying to find how to best compare 2 strings(word by word). I have 2 texts, one fully written and one abbreviated. The

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Glen Pike
...@chattyfig.figleaf.com] On Behalf Of David Hunter Sent: donderdag 22 juli 2010 14:50 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] How to handle String the best way Not entirely sure if i understand what you want to do, but you could use a regular expression to strip out any punctuation

RE: [Flashcoders] How to handle String the best way

2010-07-22 Thread Cor
...@chattyfig.figleaf.com] On Behalf Of Matt S. Sent: donderdag 22 juli 2010 15:16 To: Flash Coders List Subject: Re: [Flashcoders] How to handle String the best way Can you give us two actual String samples, of text A and text B, that you're trying to compare? .m On Thu, Jul 22, 2010 at 3:46 AM, Cor

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Matt S.
like in normal writing. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt S. Sent: donderdag 22 juli 2010 15:16 To: Flash Coders List Subject: Re: [Flashcoders] How to handle String the best way

RE: [Flashcoders] How to handle String the best way

2010-07-22 Thread Cor
] On Behalf Of Matt S. Sent: donderdag 22 juli 2010 15:50 To: Flash Coders List Subject: Re: [Flashcoders] How to handle String the best way In the end though, aren't you really checking each answer not against the abbreviation but against a correct answer, eg if the abbreviation is: sec and the correct

RE: [Flashcoders] How to handle String the best way

2010-07-22 Thread David Hunter
and more online. not that knowledgeable on regular expressions to be honest. From: c...@chello.nl To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] How to handle String the best way Date: Thu, 22 Jul 2010 15:10:46 +0200 Thanks David. I think you understood exactly what I want

RE: [Flashcoders] How to handle String the best way

2010-07-22 Thread Cor
: RE: [Flashcoders] How to handle String the best way String.replace() then a regular expression like /[,\.!\?:;\\\/]/g and replace it with nothing: . You'll probably want to check which characters to remove but remember to use an escape slash for certain characters. Haven't tried

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Karl DeSaulniers
of help in the docs and more online. not that knowledgeable on regular expressions to be honest. From: c...@chello.nl To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] How to handle String the best way Date: Thu, 22 Jul 2010 15:10:46 +0200 Thanks David. I think you

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Matt Perkins
: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter Sent: donderdag 22 juli 2010 21:14 To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] How to handle String the best way String.replace() then a regular expression

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Karl DeSaulniers
To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] How to handle String the best way String.replace() then a regular expression like /[,\.!\?:;\\\/]/g and replace it with nothing: . You'll probably want to check which characters to remove but remember to use an escape slash for certain

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Taka Kojima
in the docs and more online. not that knowledgeable on regular expressions to be honest. From: c...@chello.nl To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] How to handle String the best way Date: Thu, 22 Jul 2010 15:10:46 +0200 Thanks David. I think you understood exactly

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Matt S.
Yeah that was my question, albeit expressed in a much more convoluted way. In the end its just a right/wrong quiz. .m On Thu, Jul 22, 2010 at 4:42 PM, Taka Kojima t...@gigafied.com wrote: Seeing as you have specific abbreviations, I don't understand why Regular Expressions are entering into

RE: [Flashcoders] How to handle String the best way

2010-07-22 Thread David Hunter
i think the regular expression is to strip out unwanted characters like punctuation. comparing strings would be done by another process. From: mattsp...@gmail.com Date: Thu, 22 Jul 2010 16:51:03 -0400 Subject: Re: [Flashcoders] How to handle String the best way To: flashcoders

Re: [Flashcoders] How to handle String the best way

2010-07-22 Thread Steven Sacks
http://www.regular-expressions.info/ ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders