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 support #2

Closed
ROCKTAKEY opened this issue Jul 7, 2020 · 1 comment
Closed

Regexp support #2

ROCKTAKEY opened this issue Jul 7, 2020 · 1 comment

Comments

@ROCKTAKEY
Copy link
Owner

Like this:
regexp=>to-string

(grugru-define 'symbol
  '(("regexp" . "to-string")
     ("regexp2" . "to-string2")))
;; regexp=>regeto-string
(grugru-define 'symbol
  '((("\\(re\\)ge\\(xp\\)" 2) . "to-string")
     ("regexp2" . "to-string2")))
;; regexp=>regere
(grugru-define 'symbol
  '((("\\(re\\)ge\\(xp\\)" 2) . "\1")
     ("regexp2" . "to-string2")))
@ROCKTAKEY
Copy link
Owner Author

It is impossible, bacause it cannot determine beginning of string which is passed to string-match.

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