Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
Darron, If it's a concern, then when you build your regex don't escape the \'s, and as a last step before you convert them to strings just do a quick find/replace with \ to \\ on the regex. > convert them to strings ... ? I am back into the easy bake oven and burned myself. Are you saying when I write a regexp as a string? Then do a replace on them? The problem is, once you even write a string, it converts them. So it's like the chicken-egg thing. I can't even get the string to a point where I could do this. The string literal allready baked the backslash out. Ok, I am done wasting time, back to the double backslashes until Adobe makes multiline regexp for me. ;-) PS, There seems to be this notion in my mid that I am completly missunderstanding you, if this is the case could you clarify for me? If so, everything I wrote means nothing :) Peace, Mike On 3/18/06, Gordon Smith <[EMAIL PROTECTED]> wrote: > Can I petition? :-) Of course. We're always interested in feedback on whether we're making the right decisions. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Darron J. Schall Sent: Saturday, March 18, 2006 9:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-) Gordon Smith 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 justifyhaving both String and StringBuilder. Doh, really? I've actually been using it a decent amount. It's especially handy in testing the SHA1 hash of a million letter a's to verify the hash algorithm is correct: var millionAs:StringBuilder = new StringBuilder ( '' ); millionAs.ensureCapacity( 100 ); for ( var i: int = 0; i < 100 ; i++ ) { millionAs.append( 'a' ); }assertSHA1( millionAs. toString(), "34aa973cd4c4daa4f61eeb2bdbad27316534016f" ); I realize the above loop could be unrolled to make it perform even faster (by appending more 'a's in each append call, and reducing the number of iterations by 10x, 100x, etc). But StringBuilder in this case was a lot faster than using a regular string.. though, I imagine this isn't really a typical use-case. That said, however, it would be a shame to see StringBuilder go -- especially after having written a decent number of pages for it for an upcoming book. Can I petition? :-) -d -- 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.
Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
Ah, are you talking about the code panes find/replace? Heh, I won't goto that trouble, I can see myself really messing things up! Peace, MikeOn 3/19/06, Michael Schmalle <[EMAIL PROTECTED]> wrote: Darron, If it's a concern, then when you build your regex don't escape the \'s, and as a last step before you convert them to strings just do a quick find/replace with \ to \\ on the regex. > convert them to strings ... ? I am back into the easy bake oven and burned myself. Are you saying when I write a regexp as a string? Then do a replace on them? The problem is, once you even write a string, it converts them. So it's like the chicken-egg thing. I can't even get the string to a point where I could do this. The string literal allready baked the backslash out. Ok, I am done wasting time, back to the double backslashes until Adobe makes multiline regexp for me. ;-) PS, There seems to be this notion in my mid that I am completly missunderstanding you, if this is the case could you clarify for me? If so, everything I wrote means nothing :) Peace, Mike On 3/18/06, Gordon Smith < [EMAIL PROTECTED]> wrote: > Can I petition? :-) Of course. We're always interested in feedback on whether we're making the right decisions. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Darron J. Schall Sent: Saturday, March 18, 2006 9:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-) Gordon Smith 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 justifyhaving both String and StringBuilder. Doh, really? I've actually been using it a decent amount. It's especially handy in testing the SHA1 hash of a million letter a's to verify the hash algorithm is correct: var millionAs:StringBuilder = new StringBuilder ( '' ); millionAs.ensureCapacity( 100 ); for ( var i: int = 0; i < 100 ; i++ ) { millionAs.append( 'a' ); }assertSHA1( millionAs. toString(), "34aa973cd4c4daa4f61eeb2bdbad27316534016f" ); I realize the above loop could be unrolled to make it perform even faster (by appending more 'a's in each append call, and reducing the number of iterations by 10x, 100x, etc). But StringBuilder in this case was a lot faster than using a regular string.. though, I imagine this isn't really a typical use-case. That said, however, it would be a shame to see StringBuilder go -- especially after having written a decent number of pages for it for an upcoming book. Can I petition? :-) -d -- 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. -- 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.
RE: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
> Can I petition? :-) Of course. We're always interested in feedback on whether we're making the right decisions. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Darron J. Schall Sent: Saturday, March 18, 2006 9:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-) Gordon Smith wrote: Forget StringBuilder... it's going away in B3. The player team decidedit didn't give enough performance gain in enough useful cases to justifyhaving both String and StringBuilder. Doh, really? I've actually been using it a decent amount. It's especially handy in testing the SHA1 hash of a million letter a's to verify the hash algorithm is correct: var millionAs:StringBuilder = new StringBuilder( '' );millionAs.ensureCapacity( 100 );for ( var i:int = 0; i < 100; i++ ) { millionAs.append( 'a' );}assertSHA1( millionAs.toString(), "34aa973cd4c4daa4f61eeb2bdbad27316534016f" ); I realize the above loop could be unrolled to make it perform even faster (by appending more 'a's in each append call, and reducing the number of iterations by 10x, 100x, etc). But StringBuilder in this case was a lot faster than using a regular string.. though, I imagine this isn't really a typical use-case. That said, however, it would be a shame to see StringBuilder go -- especially after having written a decent number of pages for it for an upcoming book. Can I petition? :-) -d -- 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.
Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
Darron, blush... If you looked at my php implementation(my as2 doc generator) it had all that plus some hex stuff. I was using this as a test parsing and I never use dollar signs, slipped my mind. Thanks for reminding me ;-) And for that first idea, haha great!!! Man 4 eyes are better than 2! Peace, MikeOn 3/18/06, Matt Chotin <[EMAIL PROTECTED]> wrote: += is much improved from when we needed StringBuilder earlier in the cycle. The gains of StringBuilder were reduced to a very limited number of cases and it was decided that the amount of Player code required along with testing just didn't make it worthwhile. We're still investigating to make sure that some of our stuff didn't degrade but it's likely that we'll fix the String class rather than re-introduce StringBuilder if there are problems. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Darron J. Schall Sent: Saturday, March 18, 2006 12:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-) Gordon Smith 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 justifyhaving both String and StringBuilder. Doh, really? I've actually been using it a decent amount. It's especially handy in testing the SHA1 hash of a million letter a's to verify the hash algorithm is correct: var millionAs:StringBuilder = new StringBuilder ( '' ); millionAs.ensureCapacity( 100 ); for ( var i: int = 0; i < 100 ; i++ ) { millionAs.append( 'a' ); }assertSHA1( millionAs. toString(), "34aa973cd4c4daa4f61eeb2bdbad27316534016f" ); I realize the above loop could be unrolled to make it perform even faster (by appending more 'a's in each append call, and reducing the number of iterations by 10x, 100x, etc). But StringBuilder in this case was a lot faster than using a regular string.. though, I imagine this isn't really a typical use-case. That said, however, it would be a shame to see StringBuilder go -- especially after having written a decent number of pages for it for an upcoming book. Can I petition? :-) -d -- 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.
RE: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
+= is much improved from when we needed StringBuilder earlier in the cycle. The gains of StringBuilder were reduced to a very limited number of cases and it was decided that the amount of Player code required along with testing just didn’t make it worthwhile. We’re still investigating to make sure that some of our stuff didn’t degrade but it’s likely that we’ll fix the String class rather than re-introduce StringBuilder if there are problems. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. Schall Sent: Saturday, March 18, 2006 12:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-) Gordon Smith wrote: Forget StringBuilder... it's going away in B3. The player team decidedit didn't give enough performance gain in enough useful cases to justifyhaving both String and StringBuilder. Doh, really? I've actually been using it a decent amount. It's especially handy in testing the SHA1 hash of a million letter a's to verify the hash algorithm is correct: var millionAs:StringBuilder = new StringBuilder( '' );millionAs.ensureCapacity( 100 );for ( var i:int = 0; i < 100; i++ ) { millionAs.append( 'a' );}assertSHA1( millionAs.toString(), "34aa973cd4c4daa4f61eeb2bdbad27316534016f" ); I realize the above loop could be unrolled to make it perform even faster (by appending more 'a's in each append call, and reducing the number of iterations by 10x, 100x, etc). But StringBuilder in this case was a lot faster than using a regular string.. though, I imagine this isn't really a typical use-case. That said, however, it would be a shame to see StringBuilder go -- especially after having written a decent number of pages for it for an upcoming book. Can I petition? :-) -d -- 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.
Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
Michael Schmalle wrote: > The only reason I don't like using the string is the esacped back > slash sequences. If it's a concern, then when you build your regex don't escape the \'s, and as a last step before you convert them to strings just do a quick find/replace with \ to \\ on the regex. > > ?var\\s([a-zA-Z_]+)\\s?:?\\s?([a-zA-Z_]+)(\\s?=\\s?(.*))?;? > If you're looking for "var ident:type = value;" don't forget that identifiers can be more than just [a-zA-Z_] in ActionScript. A slightly better expression might be [a-zA-Z_$][0-9a-zA-Z_$]* which allows for a variable name such as "$person7" To make sure you don't miss anything, you can check out the language spec [1] for the structure of identifiers. -d [1] http://livedocs.macromedia.com/specs/actionscript/3/ -- 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
Gordon Smith 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. Doh, really? I've actually been using it a decent amount. It's especially handy in testing the SHA1 hash of a million letter a's to verify the hash algorithm is correct: var millionAs:StringBuilder = new StringBuilder( '' ); millionAs.ensureCapacity( 100 ); for ( var i:int = 0; i < 100; i++ ) { millionAs.append( 'a' ); } assertSHA1( millionAs.toString(), "34aa973cd4c4daa4f61eeb2bdbad27316534016f" ); I realize the above loop could be unrolled to make it perform even faster (by appending more 'a's in each append call, and reducing the number of iterations by 10x, 100x, etc). But StringBuilder in this case was a lot faster than using a regular string.. though, I imagine this isn't really a typical use-case. That said, however, it would be a shame to see StringBuilder go -- especially after having written a decent number of pages for it for an upcoming book. Can I petition? :-) -d -- 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.
Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
It was StringBuilder's going-away rave. - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Saturday, March 18, 2006 6:54 AM Subject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-) Yeah,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 arn 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 decidedit didn't give enough performance gain in enough useful cases to justifyhaving both String and StringBuilder. - Gordon -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of JesterXLSent: Friday, March 17, 2006 8:01 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Futureenhancement ? ;-)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: <flexcoders@yahoogroups.com>Sent: Friday, March 17, 2006 9:16 PMSubject: Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Futureenhancement ? ;-)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 astring:var regex:RegExp = new RegExp( "some realy" + "really really long" + "regex here" );-d--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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.
Re: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
Yeah, 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 arn 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, MikeOn 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: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Friday, March 17, 2006 8:01 PM To: flexcoders@yahoogroups.com 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: <flexcoders@yahoogroups.com> 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.
RE: [flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, March 17, 2006 8:01 PM To: flexcoders@yahoogroups.com 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: 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 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
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: 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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
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 <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] AS3 :: Multiline RegExp declarations :: Future enhancement ? ;-)
Hello, I know it's friday and a party night but, Adobe engineers... Do you ever think down the road, you will give us regexp freaks a multiple line regexp declaration? Anyway, I am doing these things in a doc parser and it's getting long ;-) This would be one of the kewlest things along with comments. Peace, Mike-- 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.