how do I look in a string to see it matches
a simple regular expression
where the regular expression
is coming from buffers/inputs and not part of the compiled script?
secure solutions only please.
anything that 'executes' or evaluates the 'words
of the regexp would open a massive loophole.
by simple I mean that only
^ (front anchor - missing front tests for suffixes)
$ (end anchor - missing end tests for prefixes)
| (alternates)
?! (not)
and () are used in the app being ported.
sample initial conditions:
userlist: {^(ted|admin|bobr|andrew|elan|keith|cheryl|joel|brady)$}
current-user: "bobr"
excluded-files: {^(?!(notxt|ask_new|only_owner_may_edit))}
is-memberof-re userlist current-user
>> true
is-memberof-re excluded-files "myfavoritemartian.html"
>> false
>>source is-memberof-re
?
{-----}
[EMAIL PROTECTED]
- [REBOL] OpenSource REBOL Re:(9) jbone
- [REBOL] OpenSource REBOL Re:(10) news . ted
- [REBOL] OpenSource REBOL Re:(10) robert . muench
- [REBOL] OpenSource REBOL Re:(11) Al . Bri
- [REBOL] [REBOL] Logging Rebol Errors tjohnson
- [REBOL] [REBOL] Logging Rebol Errors Re: icimjs
- [REBOL] OpenSource REBOL Re: news . ted
- [REBOL] Re: OpenSource REBOL Re: ejolson
- [REBOL] How do I conditionally shadow a variable Re:(... bobr
- [REBOL] Re: How do I conditionally shadow a variable ... giesse
- [REBOL] How do I test for simple regex from external strin... bobr
- [REBOL] How do I test for simple regex from external ... Al . Bri
- [REBOL] How do I test for simple regex from external ... bobr
- [REBOL] How do I test for simple regex from external ... Al . Bri
- [REBOL] How do I test for simple regex from external ... icimjs
- [REBOL] How do I test for simple regex from external ... icimjs
- [REBOL] How do I test for simple regex from external ... bobr
- [REBOL] How do I test for simple regex from external ... joel . neely
- [REBOL] How do I test for simple regex from external ... icimjs
- [REBOL] How do I ... Retrieve a message from SELMA Re: news . ted
