01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08: package com.gwtext.client.core;
09:
10: import com.google.gwt.core.client.JavaScriptObject;
11:
12: /**
13: * This class represents a Regular Expression.
14: */
15: public class RegExp extends JsObject {
16:
17: /**
18: * Constructs a new REgular Expression.
19: *
20: * @param re the regular expression String
21: */
22: public RegExp(String re) {
23: jsObj = create(re);
24: }
25:
26: private native JavaScriptObject create(String re) /*-{
27: return new $wnd.RegExp(re);
28: }-*/;
29: }
|