我想在这个html中搜索这些字符串:
var c1Arr = new Array("","to fork","to fork","to fork","to fork","to fork","to fork","to fork","fork","fork","fork","fork","fork","fork","fork","fork","fork","fork-tongued","to fork off","to fork off","to fork out");
var c2Arr = new Array("","abbiegen","gabeln","abzweigen","aufspalten","sich gabeln","sich verzweigen","sich zwillen","Gabel","Gabelung","Abzweigung","Verzweigung","Aufspaltung","Abspaltung","Zwiesel","Gabel","Weggabelung","doppelzüngig","schräg abzweigen","schräg abbiegen","auszahlen");
我尝试过这样的事情:"^[c1Arr = new Array(][-\\.~:%_/?A-Za-z0-9]*[);]$"
和一些变化,但这似乎不起作用。我阅读了有关如何构建正则表达式的教程,但这并没有太大帮助。
关于这些字符串的正则表达式看起来如何的任何想法?