Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] string matching problem



******    message to minivend-users from "kyle@invisio.com" <kyle@invisio.com>     ******

I'm not sure if this will work in minivend, but give
it a try:

[if scratch selCategory =~ m#^[sql-param name]#i]

as long as there are no # in the string it should work,
if there are # then replace them with another character
that won't show up in [sql-param name]

Kyle Cook (KC)


At 04:27 PM 1/13/00 -0600, you wrote:
>******    message to minivend-users from "Pawel Opala" <pawel@12ave.com>     
>******
>
>I ran into a problem with string matching, when string has a "/" in it.
>Here's the line that does the match:
>
>      [if scratch selCategory =~ /^[sql-param name]/i]
>
>I cannot strip the "/" because it is used as part of navigation -- when
>it is written to the page, it is used as part of URL, however, before
>it is written to the page, I am running a comparison on it.
>I would very much appreciate help on this.
>-
>To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: