Re: [ACFUG Discuss] regex help

2006-05-17 Thread Dean H. Saxe
Your regex is:menu[0-9]+[^;]+That gets from menu through the character preceding the semicolon.-dhs Dean H. Saxe, CEH[EMAIL PROTECTED]"To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public."    -- Theodore RooseveltFind out about my Hike for Discovery at www.fullfrontalnerdity.com/hfd On May 17, 2006, at 10:33 AM, Steven Ross wrote:Hi all... this stuff always boggles my mind when I try to do it so yet again I'm asking for help.I'm trying to match only strings like the one below in a JS file using ReFind and return them individually.menu1.addItem ("Architecture","http://infoserve.glenayre.com/AdvancedDev/default.html");I have something like this but I think it is getting the first match all the way to the last ";" cfset parsed_content = ReFind("menu[0-9]+[^;]\);", menu_content, 1, "True") /snip from js file//var menu2 = ms.addMenu(document.getElementById("menu2"));     //menu2.addItem("Updates","http://www.highend3d.com/maya/");        /* DEPARTMENTS MENU */    var menu1 = ms.addMenu(document.getElementById ("dropdown1"));    menu1.addItem("Architecture","http://infoserve.glenayre.com/AdvancedDev/default.html");    menu1.addItem ("Atlanta Engineering","http://157.230.162.126/");    menu1.addItem("Compliance","/infoserve/departments/compliance/");    //menu1.addItem("Bids and Proposals","#");     menu1.addItem("Engineering Product Assurance","http://157.230.167.122/");/snip from js file-- Steven Rossweb application  interface developer http://www.zerium.com[phone] 404-488-4364 - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform  For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink -

Re: [ACFUG Discuss] regex help

2006-05-17 Thread Teddy Payne
(\/\/)?[\s]+menu[0-9]+.addItem[^;]+This captured the complete line to include the comments and optional space in between the // to the menu.addItem method.All you need to do is make sure not to use the strings that start with //.
TeddyThis will get any addItem lines. Just make sure to exclude the results that start with the comments.On 5/17/06, Dean H. Saxe 
[EMAIL PROTECTED] wrote:
Your regex is:menu[0-9]+[^;]+That gets from menu through the character preceding the semicolon.-dhs 


Dean H. Saxe, CEH

[EMAIL PROTECTED]
To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public.

 -- Theodore RooseveltFind out about my Hike for Discovery at 
www.fullfrontalnerdity.com/hfd On May 17, 2006, at 10:33 AM, Steven Ross wrote:Hi all... this stuff always boggles my mind when I try to do it so yet again I'm asking for help.
I'm trying to match only strings like the one below in a JS file using ReFind and return them individually.menu1.addItem (Architecture,
http://infoserve.glenayre.com/AdvancedDev/default.html);I have something like this but I think it is getting the first match all the way to the last ; cfset parsed_content = ReFind(menu[0-9]+[^;]\);, menu_content, 1, True) /
snip from js file//var menu2 = ms.addMenu(document.getElementById(menu2));  //menu2.addItem(Updates,
http://www.highend3d.com/maya/);  /* DEPARTMENTS MENU */ var menu1 = ms.addMenu(document.getElementById (dropdown1)); menu1.addItem(Architecture,
http://infoserve.glenayre.com/AdvancedDev/default.html); menu1.addItem (Atlanta Engineering,
http://157.230.162.126/); menu1.addItem(Compliance,/infoserve/departments/compliance/); //menu1.addItem(Bids and Proposals,#);  menu1.addItem(Engineering Product Assurance,
http://157.230.167.122/);/snip from js file-- Steven Rossweb application  interface developer 
http://www.zerium.com[phone] 404-488-4364 - 
To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform
  For more info, see http://www.acfug.org/mailinglists Archive @ 
http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink -





-

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by FusionLink

-