お気に入りTableau Community Forums Member (Inactive) (Salesforce) が「#Test」で質問2023年9月7日 16:15How can I replace a backslash-n in a string?I have a string that looks like this: #TEST\n\nPost I'm using this regexp:if regexp_match([Hashtags], "\\n.*") then regexp_replace([Hashtag], "\\n.*", "") What I'm trying to get is #TEST, but when I use the above, it returns the original string instead.8 件の回答並び替え日付で並び替え役に立った順で並び替え日付で並び替えコメントをさらに読み込む...Don Wise2023年9月7日 16:23You could try:IF REGEXP_MATCH([Data],'(#)')THEN REGEXP_EXTRACT([Data],'(#\w+)') END Best, Don(Please, don't forget to click Select as Best or Upvote !)表示件数を増やすコメントを追加回答を記入...太字斜体下線取り消し線箇条書き番号付きリストリンクを追加コードブロック画像を挿入ファイルを添付リンク URLキャンセル保存0/9000返信
Don Wise2023年9月7日 16:23You could try:IF REGEXP_MATCH([Data],'(#)')THEN REGEXP_EXTRACT([Data],'(#\w+)') END Best, Don(Please, don't forget to click Select as Best or Upvote !)表示件数を増やす