<?xml version="1.0" encoding="utf-8"?>

<snippet name = "只有字符" description = "验证给定的字符串完全由非数字的字符组成。" preview="code" type="block">

<insertText location="beforeSelection">

<![CDATA[function onlyCharacters(inputString)

{

  var searchForNumbers = /\d+/

  (searchForNumbers.test(inputString)) ? return false : return true;

}]]>

</insertText>

<insertText location="afterSelection"><![CDATA[]]>

</insertText>

</snippet>

