2011/11/3 zhu qun-ying <[email protected]>: > Hi, > > I am in searching of a regular expression pattern that could matched the > regular expression in javascript (I am testing a javascript parser in ragel). > To make myself clear, e.g. > Like an expression in javascript: > a=/ab[cdfg]/g > > Is there a way that I could write a regular expression to match the string of > "/ab[cdfg]/g", which itself is an regular expression
You need to detect begin and the end of regular expression, and, if you want to check regex, just compile it. > > I could not find an answer after googling and hope the expert in this group > may help. > > > Thanks > -- > qun-ying > > _______________________________________________ > ragel-users mailing list > [email protected] > http://www.complang.org/mailman/listinfo/ragel-users > -- Segmentation fault _______________________________________________ ragel-users mailing list [email protected] http://www.complang.org/mailman/listinfo/ragel-users
