Well..
The only reason I don't like using the string is the esacped back slash sequences.
This is a chunck btw, I am using strings.
?var\\s([a-zA-Z_]+)\\s?:?\\s?([a-zA-Z_]+)(\\s?=\\s?(.*))?;?
It's those ddddarn double slashes mess my groove up when making complex regexps.
Anyway, I am just using a static regexp library that uses string and I pass modifiers and construct the regexp there in a static getRegExp method. So with the library it's write once use anywhere. I guess the double slashes arn't that bad for now. :-()
You do it wonderful with XML, RegExp could use that make over someday ;-)
PS Jesse, song lyrics in an example, kewl ; I can see the turntables ;-)
Peace, Mike
On 3/18/06, Gordon Smith <[EMAIL PROTECTED]> wrote:
Forget StringBuilder... it's going away in B3. The player team decided
it didn't give enough performance gain in enough useful cases to justify
having both String and StringBuilder.
- Gordon
-----Original Message-----
From: [email protected] [mailto: [email protected]] On
Behalf Of JesterXL
Sent: Friday, March 17, 2006 8:01 PM
To: [email protected]
Subject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future
enhancement ? ;-)
And use StringBuilder to build teh String to save teh RAM 4 teh w1n!
var body:StringBuilder = new StringBuilder();
body.append("some realy");
body.append("really really long");
body.append("regex here");
var regex:RegExp = new RegExp(rockYoBody);
----- Original Message -----
From: "Darron J. Schall" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 17, 2006 9:16 PM
Subject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future
enhancement ? ;-)
Michael Schmalle wrote:
> Do you ever think down the road, you will give us regexp freaks a
> multiple line regexp declaration?
Don't use a regex literal. Instead, use the constructor and pass a
string:
var regex:RegExp = new RegExp( "some realy"
+ "really really long"
+ "regex here" );
-d
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
What goes up, does come down.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

