use something like:
[font is a variable handle for your string]
var color=font.string(font.indexOf('color=\"'+1),('\"'));
etc - that should extract those variables for you. Dunno if it's equiliant to that
java method though...
Henrik Våglin [ [EMAIL PROTECTED] ]
----- Original Message -----
From: "Matt Fair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 13, 2001 12:11 AM
Subject: [Dynapi-Help] parsing in javascript
> Does anyone know how to parse a string in javascript, is there anything
> like the StringTokenizer class in java?
> I want to take a string like "<font color="red" face="times-roman"
> size="2">HelloWorld</font> and extract the color, face, size, and text
> from it.
> Thanks
> Matt
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help