Re: OT: WebSTAR Modify Rules

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66161
interpreted = N
texte = I don't know about WebSTAR, but be careful using .* Regular expressions tend to be greedy, i.e. they will match as much as possible. You might instead try: [^/]* This will match to the next slash. Put a few in a row like this: ([^/]*)/([^/]*)/([^/]*) and pull them out with $1, $2, $3 for each corresponding group. Bill -----Original Message----- From: Mark Derrick Sent: Thu, 2 Feb 2006 11:13:11 +0000 To: "WebDNA Talk" Subject: OT: WebSTAR Modify Rules I've been using WebSTAR Modify Rules successfully for ages now, but only with very simple rules. I'm now trying to put together something more complex, and my inexperience with these is now beginning to show! This is what I want to do. I want to use a URL such as: www.domain.com/list/dept/category/subcategory/search////cartnumber And then through Modify Rules, pull out the various variables stored between the /'s (also allowing for empty variables), and reapply them to a regular WebDNA URL. I've tried to play around with the various /(.*)/ and $1.1, $1.2, etc, but I think I'm just missing something! Thanks for any help. Mark. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: OT: WebSTAR Modify Rules ( Mark Derrick 2006)
  2. Re: OT: WebSTAR Modify Rules ( devaulw@onebox.com 2006)
  3. OT: WebSTAR Modify Rules ( Mark Derrick 2006)
I don't know about WebSTAR, but be careful using .* Regular expressions tend to be greedy, i.e. they will match as much as possible. You might instead try: [^/]* This will match to the next slash. Put a few in a row like this: ([^/]*)/([^/]*)/([^/]*) and pull them out with $1, $2, $3 for each corresponding group. Bill -----Original Message----- From: Mark Derrick Sent: Thu, 2 Feb 2006 11:13:11 +0000 To: "WebDNA Talk" Subject: OT: WebSTAR Modify Rules I've been using WebSTAR Modify Rules successfully for ages now, but only with very simple rules. I'm now trying to put together something more complex, and my inexperience with these is now beginning to show! This is what I want to do. I want to use a URL such as: www.domain.com/list/dept/category/subcategory/search////cartnumber And then through Modify Rules, pull out the various variables stored between the /'s (also allowing for empty variables), and reapply them to a regular WebDNA URL. I've tried to play around with the various /(.*)/ and $1.1, $1.2, etc, but I think I'm just missing something! Thanks for any help. Mark. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ devaulw@onebox.com

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

webcat- multiple selection in input field (1997) unable to run webcatalog locally (1998) Date Sorting (1997) [WebDNA] listfiles weirdness? (2018) Getting real time CC's out of Australia (1998) Not really WebCat (1997) Linux [listfiles] (2007) Images (2000) Default admin bug and how tech support reacted to it. (2000) No comment (1997) Mac v. NT (1998) QuitFeedback & DBNotOpened errors (1997) [OT] Bookmarking code (2003) question: back button prevention (1997) WebCat2 - Getting to the browser's username/password data (1997) [SHOWIF] PROBLEM (2000) Serious bug writing to a database ... (2002) Alternating BGColors in Table Rows (1998) Paths, relative paths, webstar server setup and security (Mac) (1997) Field name-subcategory (1997)