Return to Snippet

Revision: 46363
at May 17, 2011 23:17 by hejaaa


Initial Code
function firstLineLength(text:String):int {
	var reg:RegExp = /^[\S ]*/m;
	var length:int = String(reg.exec(text)).length;
	return length;
}

Initial URL

                                

Initial Description

                                

Initial Title
Get length from first line textfield

Initial Tags
text, line

Initial Language
ActionScript 3