More a Java Q
In PHP I can do
if (stristr($myString, "findThis")) $myString = str_replace("arrayofSearches"," arrayofReplacements",$myString);
Is there something similar in Interpreted Java in SS?
Or even a strip_tags($myString, ""); ?
Using strip html in the Token edit causes
tags when saved to a file to be replaced with \n and it also does not seem to strip partial tag matches:
some text
or
some text
I can't match between the
as the tags only appear in some of the entries and not others.
Thank you,
More a Java Q
Excellent! Thank you so much Scott! :)
More a Java Q
Ryan,
In interpretive java you can use the following.
replaceAll("<[^<>]*>", "");
It allows you to use regular expressions in the first input.
Here's an example implementation.
String prepareStringForOutput( String value )
{
if (value != null)
{
value = value.replaceAll("<[^<>]*>", "");
value = value.trim();
}
return "\"" + ( (value==null || value.equals( "