I've tried this Regex in various online tools to verify that it works... and it does. I figured it would be the easiest way to strip out any *'s in a variable. Any thoughts?
Mirth Connect Server 3.0.3.7171
Java version: 1.6.0_45
The Value: **********ROBERT BUCKNER, M.D.
The code:
RenderingProviderCode = RenderingProviderCode.replace(/\*/g, '');
The Error:
InternalError: The choice of Java method java.lang.String.replace matching JavaScript argument types (function,string) is ambiguous; candidate methods are:
class java.lang.String replace(java.lang.CharSequence,java.lang.CharSeque nce)
class java.lang.String replace(char,char) (06a5a336-f7f2-4fab-94b1-a9dfae468e13#604)
Mirth Connect Server 3.0.3.7171
Java version: 1.6.0_45
The Value: **********ROBERT BUCKNER, M.D.
The code:
RenderingProviderCode = RenderingProviderCode.replace(/\*/g, '');
The Error:
InternalError: The choice of Java method java.lang.String.replace matching JavaScript argument types (function,string) is ambiguous; candidate methods are:
class java.lang.String replace(java.lang.CharSequence,java.lang.CharSeque nce)
class java.lang.String replace(char,char) (06a5a336-f7f2-4fab-94b1-a9dfae468e13#604)
Regex to strip * from variable not working
0 commentaires:
Enregistrer un commentaire