[Grbl_Esp32 PR#717] Settings filtering via regular expressions

未分类 bolang 6个月前 (10-14) 43次浏览

Issue #717 | 状态: 已关闭 | 作者: MitchBradley | 创建时间: 2020-12-22


Implements only the most basic – and the most
useful – special characters – ^$.*

If the search string does not contain a special
character, it is interpreted as before. Otherwise
the match is either more strict if anchored by
^ or $, or less strict if it contains a * wildcard .

Some examples:

$y – settings that contain y (as before)
$^y – settings that start with y
$y$ – settings that end with y
$^y*pin – settings that start with y and contain pin
$^y*rd$ – settings that start with y and end with rd

Note that $x is a classic grbl command as always. If you want to see settings that contain x, you can write $x. For settings that start with x, use $^x . In general, this works with any existing Grbl command – by inserting a , you can force it to be interpreted as a setting instead of a command.

原始Issue: https://github.com/bdring/Grbl_Esp32/pull/717

喜欢 (0)