Hi,

I'm not too familiar with the regex object so I'm
wondering if anyone can help me out? Here's an example
of what I'm trying to do:

var s=" test <table>[EMAIL PROTECTED]</table2> this is a
[EMAIL PROTECTED] [EMAIL PROTECTED]:[test message]} tht ere
[EMAIL PROTECTED]:[test message4]}";
var r= /[EMAIL PROTECTED]/g;
var a= s.match(r)
s=a.join()
s=s.replace(/\{@(\w+?)\W.+?\}/g,'$1');
alert(s)


I would like the use regex to get all the field names
withing the a string then use another regex to get all
multi-line field names and their content
([EMAIL PROTECTED]:[content]}). Is this possible?

Many thanks

--
Raymond Irving



__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to