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

增加自定义正则表达式功能,用来过滤特定字符 #88

Open
olyvcn opened this issue Sep 11, 2020 · 0 comments
Open

增加自定义正则表达式功能,用来过滤特定字符 #88

olyvcn opened this issue Sep 11, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@olyvcn
Copy link

olyvcn commented Sep 11, 2020

比如翻译下面这段代码注释

/**
 * Executes the given function [action] specified number of [times].
 *
 * A zero-based index of current iteration is passed as a parameter to [action].
 *
 * @sample samples.misc.ControlFlow.repeat
 */

前面的 /* 是干扰元素,此时就可以通过自定义正则表达式过滤它们

比如正则表达式为 [/*]+

得到过滤后的关键翻译文本

Executes the given function [action] specified number of [times].

A zero-based index of current iteration is passed as a parameter to [action].

@sample samples.misc.ControlFlow.repeat
@olyvcn olyvcn added the enhancement New feature or request label Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant