One more Question:I try to set the result to upper cases.host.toUpperCase()Error: ECMAException - TypeError: null has no such function "toUpperCase" Do you know another function? Could’t you also tell me wich language the ETM exactly uses?It’s not the JAVA I know.Kind regardsJo Schmitz
Hello Paul,many thanks for the support.This solution (build by your tips) works perfektly:var content = inbound['text/plain']var re = /Host=([^\s]+)/;var matches = content.match(re);var host = matches && matches[1]hostMany many thanks.Kind regardsJo Schmitz
Hello Paul,thanks for your request.I am using this code (build out of your answers):if(!inbound['text/html']){ inbound['text/plain']}else{ inbound['text/html']}var regEx = /Host=([^\s]+)/;var matches = regEx.exec(inbound);if(matches){ "True"} else { "False"}The variable “inbound” contains at two points: - <p class="MsoNormal"><code><span style="font-size:10.0pt">Host=oem-12.dcc.562.com</span></code><o:p></o:p></p> - Host=oem-12.dcc.562.comUnfortunately the result shows “False”.If I try your code here https://regex101.com/ everthing works fine. I also don’t understand how to get the result “ oem-12.dcc.562.com ” as outputKind regardsJo Schmitz
Hello Steve,do you now a solution with your code to get the name after the Host= as output?So if we got Host=oem-12.dcc.562.com in our mail body, the output should be oem-12.dcc.562.com.Our problem is that the names can be structured differently.Examples: - Host=oem-12.dcc.562.com - Host=HSTG-20887.TG - Host=Kernel.On-5489The only thing we have in common is that we don't have spaces in our Hostnames.Kind regardsJo Schmitz
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.