Listing 8 demonstrates how to check a JSON string with a regular expression.
清单8演示了如何使用正则表达式检查JSON字符串。
Be sure to include a leading and trailing blank in your class attribute string check.
一定要在class属性字符串检查中包含前导和尾部空格。
For example, Line 2 shows a check that determines if an empty string has been provided.
例如,第2行检查提供的是否是空字符串。
应用推荐