[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] string matching problem
****** message to minivend-users from Mike Heins <mike@minivend.com> ******
Quoting Pawel Opala (pawel@12ave.com):
> ****** 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]
MV uses Perl syntax here, so it really is a Perl question.
[if scratch selCategory =~ m{^[sql-param name]}i]
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
Be patient. God isn't 131 Willow Lane, Floor 2 | || _ \
finished with me yet. Oxford, OH 45056 | || |_) |
-- unknown <mikeh@minivend.com> |___| _ <
513.523.7621 FAX 7501 |_| \_\
-
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