No result returned with the tool used for extracting content using regular expressions. #9316

Closed
opened 2026-02-21 18:33:12 -05:00 by yindo · 0 comments
Owner

Originally created by @ConleyKong on GitHub (Mar 5, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Add a regex extraction node in the workflow. The node works correctly in an independent test and can extract text content, but when placed in the workflow, it receives data but returns no value.

for example:

input text :

最后,将这些分析整理成JSON格式,确保符合用户的要求,不添加任何额外文字或特殊字符。\n
\n\n```json\n{\n \"ai_abstract\": \"日志记录了xxx操作,包括创建SqlSession、执行SELECT语句、获取结果以及关闭SqlSession。\",\n \"ai_suggestion\": \"日志内容正常,无需采取行动。\"\n}\n```

reg:
json.*?

✔️ Expected Behavior

The regex extraction results in the workflow are consistent with those in independent testing.

Actual Behavior

The regex extraction results in the workflow are not consistent with those in independent testing.

Originally created by @ConleyKong on GitHub (Mar 5, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Add a regex extraction node in the workflow. The node works correctly in an independent test and can extract text content, but when placed in the workflow, it receives data but returns no value. for example: input text : <details>最后,将这些分析整理成JSON格式,确保符合用户的要求,不添加任何额外文字或特殊字符。\n</details>\n\n```json\n{\n \"ai_abstract\": \"日志记录了xxx操作,包括创建SqlSession、执行SELECT语句、获取结果以及关闭SqlSession。\",\n \"ai_suggestion\": \"日志内容正常,无需采取行动。\"\n}\n``` reg: ```json.*?``` ### ✔️ Expected Behavior The regex extraction results in the workflow are consistent with those in independent testing. ### ❌ Actual Behavior The regex extraction results in the workflow are not consistent with those in independent testing.
yindo added the 🌊 feat:workflow label 2026-02-21 18:33:12 -05:00
yindo closed this issue 2026-02-21 18:33:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9316