Hi,
What type of script engine is used in Email Parser2database?
I am looking for string handling routines like stringreplace and trimming functions.
Is there a function and procedures list?
Maurice
What type of script engine is used in Email Parser2database?
I am looking for string handling routines like stringreplace and trimming functions.
Is there a function and procedures list?
Maurice
Don't matter. Already found out.
[syntax=csharp]String test;
test = "abcdefghijk";
test = test.Replace("abc","123");
[/syntax]
[syntax=csharp]String test;
test = "abcdefghijk";
test = test.Replace("abc","123");
[/syntax]
outputs: 123defghijk
Hello Maurice,
Sorry for replying a bit late. I will post another example:
[syntax="csharp"]public class MyAction : ScriptBasedAction
{
public override void Run(Dictionary<string, string> fields)
{
String my_string = " 123456 ";
// Should show 123456 with no spaces before and after the numbers
MessageBox.Show(my_string.Trim());
// Should show 1abc56
MessageBox.Show(my_string.Replace("234","abc"));
}
}[/syntax]
Sorry for replying a bit late. I will post another example:
[syntax="csharp"]public class MyAction : ScriptBasedAction
{
public override void Run(Dictionary<string, string> fields)
{
String my_string = " 123456 ";
// Should show 123456 with no spaces before and after the numbers
MessageBox.Show(my_string.Trim());
// Should show 1abc56
MessageBox.Show(my_string.Replace("234","abc"));
}
}[/syntax]
Hi,
That works great! Thank you!
Maurice
That works great! Thank you!
Maurice