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]

Reply via email to