Substitution will replace anything it finds that match the text inside quotation marks with the new text and will do it in the order of the substitutions. That can lead to undesirable results like you are seeing.
One solution is to use RegExpSubstitution and quantify what is to be substituted using PCRE coding. By specifying the beginning ^ and end $ of the string to substitute, single reoccurrences of a word will not be substituted.
It is always a good idea to simply your substitutions, so I suggest a few changes. Try something like this:Didn't test, but this should get you close.
One solution is to use RegExpSubstitution and quantify what is to be substituted using PCRE coding. By specifying the beginning ^ and end $ of the string to substitute, single reoccurrences of a word will not be substituted.
It is always a good idea to simply your substitutions, so I suggest a few changes. Try something like this:
Code:
[@CurrentCondition]Measure=Webparser... {Current Measure Code} ...RegExpSubstitute=1Substitute="^Snow$":"it's#CRLF#snowing,","^Cloudy$":"it's#CRLF#cloudy,","^Fair$":"it's#CRLF#fair,","^Clear$":"it's#CRLF#clear,","^Sunny$":"it's#CRLF#sunny,""^Snow Shower/Wind$":"there's#CRLF#snow showers, wind,","^Light Snow/Wind$":"there's#CRLF#light snow, wind,","^Rain and Snow$":"it's a#CRLF#rain/snow mix,","^Rain Shower$":"there's a#CRLF#rain shower,","^Snow/Wind$":"there's#CRLF#snow, wind,","^Cloudy/Wind$":"it's#CRLF#cloudy, windy,","^Partly cloudy$":"it's#CRLF#partly cloudy,",[Meter]Meter=StringMeasureName=@CurrentConditionText="Currently %1 and it's#CRLF#[@CurrentTemperature]°"
Statistics: Posted by eclectic-tech — Today, 2:10 pm