我需要检查字段Fields!group1.Value中的字符串以查看它是否为特定格式,如果它是XX-XXXX-XXXX那么我需要在表达式中不做任何更改< / p>
=Fields!group1.Value + " " + Fields!groupDesc1.Value.
如果不是我需要删除第一个Fields!group1.Value并且只保留Fields!groupDesc1.Value。有人可以帮忙吗?
答案 0 :(得分:1)
希望这会有所帮助。您可能需要修改[A-Z]以获得小写字母或数字等
=IIF(Fields!group1.Value like "[A-Za-z0-9][A-Za-z0-9]-[A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9]-[A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9][A-Za-z0-9]",
Fields!group1.Value + " " + Fields!groupDesc1.Value,
Fields!groupDesc1.Value)