can we now use regularexpressions in Flash8 to manipulate strings?
Yes, there are some regular expression classes floating out there for
AS2/pre-Flash 9 people, have you googled those? Sorry I can't be more
help than that.
Jason Merrill
Bank of America
GTO Learning Leadership Development
well... you can't really use regular expressions in flash8 unless you
let javascript in the browser do it for you. I don't think you need
regexp to solve your problem though. I think you could just do this:
var txt:String = test/descr /descr;
// replace /descr with /descr
txt =
Of Juan Carlos
Anorga
Sent: Friday, May 18, 2007 2:25 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] regular expressions in Flash8?
well... you can't really use regular expressions in flash8 unless you
let javascript in the browser do it for you. I don't think you need
regexp
RegEx performs greedy searches, so it would find
a first and move past it, which would break the second
pattern as it would just be b. In general you want to
order your expressions from longer matching to shorter
if one contains the other.
Just think of it as gobbling up patterns before other
Regex supports lazy matching as well using the '?' option on pretty
much any quantifier.
Scott
On 24/08/06, neo binedell [EMAIL PROTECTED] wrote:
RegEx performs greedy searches, so it would find
a first and move past it, which would break the second
pattern as it would just be b. In general
http://www.regular-expressions.info/tutorial.html
This is the best RegEx tutorial I've seen out there. It's comprehensive
and every lesson builds on the last. By the time you get through it,
you'll be a RegExpert! :)
___
6 matches
Mail list logo