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
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
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
@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
...@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
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
...@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
...@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
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
] 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
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
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
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
: 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
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
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
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
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
http://www.regular-expressions.info/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
19 matches
Mail list logo