具有起始字符的语义UI正则表达式解析器

时间:2016-01-31 09:09:38

标签: regex semantic-ui

字段不能包含起始vV

{type:'regExp[/[^vV]/]', prompt: "don't start with v" }
{type:'regExp[/^vV/]', prompt: "don't start with v" }
{type:'regExp[/^(v|V)/]', prompt: "don't start with v" }
{type:'regExp[/^(v|V)[.]*/]', prompt: "don't start with v" }

没有人工作。不明白为什么。

即使是最简单的也不起作用

{type:'regExp[/^y/]', prompt: "don't be y" }

1 个答案:

答案 0 :(得分:0)

rubberduck ftw:

class Template < ActiveRecord::Base
  enum status: { draft: 0, published: 1 }
end