I execute following code snippet, but getting an null exception error.
<cfset xy="(J|j;|J|&##x6A(A|a;|&##x41;|&##x61
(V|v;|&##x56;|&##x76
(A|a;|&##x41;|&##x61
(S|s;|&##x53;|&##x73
(C|c;|&##x43;|&##x63
(T|t;|&##x54;|&##x74
;|&##x3A
|">
<cfobject action = "Create"
type = "COM"
class = "VBScript.RegExp"
name = "objRegEx">
<cfset objRegEx.Global = True >
<cfset objRegEx.IgnoreCase = True>
<cfset objRegEx.Pattern = #xy#>
<cfset objRegEx.test('test')>
I am getting an error for line <cfset objRegEx.test('test')>. I am calling Vbscript regexp expression from cold fusion. is this doable?
Error: An exception occurred when executing a Com method.
The cause of this exception was that: java.lang.NullPointerException.
The error occurred in D:\Project Area\equote\web\theft\doform.cfm: line 71
69 : <cfset objRegEx.IgnoreCase = True>
70 : <cfset objRegEx.Pattern = #xy#>
71 : <cfset objRegEx.test('test')>
72 :
73 :
Let me know what is wrong in my code? Also confirm is it okay if i call sbscript component regexp from cold fusion? It is fail when program tried to execute code objRegEx.test('test').
Let me know if anybody have any idea.
Thanks
Amar Powar
thanks
amar powar


(A|a;|&##x41;|&##x61
;|&##x3A



Bookmarks