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

Regex issues #76

Open
No3371 opened this issue Apr 5, 2021 · 1 comment
Open

Regex issues #76

No3371 opened this issue Apr 5, 2021 · 1 comment

Comments

@No3371
Copy link

No3371 commented Apr 5, 2021

Example

    1.  「ことの葉は強 (こは) く見ゆれどすまひ草露には―・つるものにざりける」〈[源順集](https://dictionary.goo.ne.jp/word/person/%E6%BA%90%E9%A0%86/#jn-212920)〉

Issues

  1. ^ 1. 「(.+)\n(?! 2.) expected to work but failed to match, does amber support Negative Look Ahead?
  2. ^ 1. 「(.+)\n matching works but replacing does not, it failed to capture.
    >「$1 replacement result:

    Expected: 1. 「ことの葉は強 (こは) く見ゆれどすまひ草露には―・つるものにざりける」〈[源順集](https://dictionary.goo.ne.jp/word/person/%E6%BA%90%E9%A0%86/#jn-212920)〉
    Returned: > 1. 「

  3. As other have reported, amber does not support \n in replacement string.
@danopia
Copy link

danopia commented Jun 1, 2023

As far as Negative Look Ahead, it looks like rust regex chooses to not have look aheads because of unpredictable performance.

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

2 participants