在shell中匹配数字

时间:2016-01-06 04:17:49

标签: shell

如何匹配在shell脚本中处理一组字符的任何数字? 例如:abc.123,abc.23456 ....应该能够匹配abc.XXXXXX

寻找像var app = angular.module('app', []); $scope.showdiv=false; function Ctrl($scope) { $scope.list_categories = [{ id: 'id1', name: 'A' }, { id: 'id2', name: 'B' }]; $scope.DropDownChange = function() { if($scope.list_category == null || $scope.list_category == "") { $scope.showdiv = false; } else{ $scope.showdiv = angular.equals($scope.list_category.name,'A'); } } } 这样的东西,这里它应该只匹配数字。

0 个答案:

没有答案