Questions tagged «regular-expressions»

用于指定搜索或替换字符串的模式。模式也称为`regex`或`regexp`,描述了在搜索或替换时要匹配的字符串。Emacs在许多命令中为`regex`模式提供了广泛的支持。Emacs还为此类模式提供了一个交互式表达式生成器。


1
在小数点上对齐数字的垂直列
我在Emacs中写了这篇文章。为了使表格看起来更好,我决定调整间距,使小数点整齐地排列。来自数据库的原始格式如下所示: emacs 11505 227 3.6 3.3 1.9 68.9 93.5 68 vi 1087 289 11.1 6.9 2.9 71.7 96.2 9 wolfram-mathematica 2993 360 4 2.2 1.9 66.7 92.5 51 那已经很接近了,但是我想让各列正确对齐,并且所有的数字都对齐。第四列应如下所示: 3.6 11.1 4 我玩过align命令,但找不到自动对齐表格(可选)小数点的方法。由于某些原因,这些说明根本无法对齐任何内容: 也可以使用将数字相对于小数点对齐M-- M-x align。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.