Regex multiplication

前端 未结 2 1439
情话喂你
情话喂你 2021-01-25 05:54

looked around for a while before I asked but I seem to find a lot of how to\'s on email and currency conversion using regex but nothing on just multiplying a number with a set v

2条回答
  •  被撕碎了的回忆
    2021-01-25 06:59

    Regular expressions are intended for text-matching, not arithmetics. Some of the tools that accept regexes can be used to perform arithmetics, like Perl and Awk for instance.

提交回复
热议问题