Hi All,

I have a variable Coursecode with a value of the following format

"3454, 232323232, 2323223, 3435346 ,456464564 ,4645645"

I want to only display the second value after the first comma in my
results.
I have tried to use the following to remove the values before the first
comma with no success..

<rule>
<description>CourseCode</description>
<conditions>
<and>
<if-op-attr name="CourseCode" op="available"/>
</and>
</conditions>
<actions>
<do-set-local-variable name="CourseName">
<arg-string>
<token-replace-first regex=",*" replace-with="">
<token-attr name="CourseCode"/>
</token-replace-first>
</arg-string>
</do-set-local-variable>
</actions>
</rule>

How would I also replace everything after the second comma ?


thanks for any help and advice