Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regexp $-commands and ^-listen with ':' #662

Open
brazilofmux opened this issue Mar 24, 2015 · 0 comments
Open

Regexp $-commands and ^-listen with ':' #662

brazilofmux opened this issue Mar 24, 2015 · 0 comments
Assignees

Comments

@brazilofmux
Copy link
Owner

Original issue 660 created by brazilofmux on 2011-05-04T20:58:10.000Z:

TinyMUX 2.10

> &test.cmd me=$+test:@pemit me=Foo
> @set me/test.cmd=regexp
> @set me=COMMANDS

> +test
Foo
> &test.cmd me=$+test::@pemit me=Foo
Brazil @pemit me=Foo
> &test.cmd me=$+test::@pemit me=Foo
Huh?
> &test.cmd me=$+test\x3A:@pemit me=Foo
> +test:
Foo
> &test.cmd me=$+test(?>\x3A)?:@pemit me=Foo
> +test:
Foo
> +test
Foo

Basically, ':' cannot appear in the command except as \x3A because TinyMUX parses it as the end of the command pattern.

'\x3A' can be used instead of ':'. '(?>...)' can be used instead '(?:...)' in most cases, but it isn't the same.

On PennMUSH, ':' is used to escape the training ':'.

@brazilofmux brazilofmux self-assigned this Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant