-
Notifications
You must be signed in to change notification settings - Fork 22
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 for the asian languages does not work, e.g. (?<!\p{Han}) or (?!\p{Lo}) #373
Comments
This is because I don't use any of the Unicode flags when creating the RegExp object, and they are needed to support these Could you please create another issue asking for unicode support, with a link to this one as example? In the meantime, as a workaround you could replace with a function where you test if the found text actually matches the correct regexp and then return the replaced string and otherwise the unmodified string. |
Thanks a lot for your attention and advice, I've already tried it and it is too cumbersome to use the function in this case. |
Maybe there is also a flag that make it possible to use the change capitalization escape in a substitution equation, like the following on https://stackoverflow.com/a/33351224/6773436:
|
This is not possible in JavaScript without using a custom function. The only recognized special strings in JavaScript are listed here. The examples listed in the Stack Overflow answer are for Sublime Text, which according to another comment relies on Boost, which following the links it seems that supports the same things as Perl. |
Thanks a lot for the clarification. It is so pity. |
Sometimes I need to replace Asian characters when they surrounded only with Western ones.
To do this, I'm trying to use
Lookbehind
andLookahead
constructions, e.g.(?<!\p{Han})
or(?!\p{Lo})
, but they don't work in FoxReplace at all, although everything is fine when I check them, for example, on https://regex101.com.The text was updated successfully, but these errors were encountered: