RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-18 Thread Gunnar Reinseth
Here's a full example implemented in Java. Shouldn't be any problem to implement in AS. http://www.prepost.net/misc/Test.java -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jayson K Hanes Sent: 17. januar 2006 20:03 To: Flashcoders mailing list Subject:

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-18 Thread Gunnar Reinseth
disregard this last post - the issue was well explained in later posts :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gunnar Reinseth Sent: 18. januar 2006 09:08 To: Flashcoders mailing list Subject: RE: [Flashcoders] efficient htmltext.reduce

RE: [Flashcoders] efficient htmltext.reduce() function? orsimilaridea?

2006-01-18 Thread Gunnar Reinseth
Well, it would reduce the amount of code used to search the string. But could you give an example string, and how it should look after being "reduced" two times ( i.e. htmltext.reduce(2) ) ? -- gunnar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jayson

RE: [Flashcoders] efficient htmltext.reduce() function? or similar idea?

2006-01-17 Thread Gunnar Reinseth
You should definetly be looking into regular expressions. The following could be wrapped up in a utility class and help build your method: var regex:RegExp = /<.*?>.*?<\/.*?>/g; var str:String = myHtmlTextBox.text; // or wherever you get your source text var result:Object = regexp.exec(str); while