{{replace(27.text; “* ”; emptystring)}}
Because there are too many characters between * , I tried to replace them with *, but it doesn’t work. Please help.
{{replace(27.text; “* ”; emptystring)}}
Hey there!
You can use the text parser replace module like so:
Welcome to the Make Community!
The Text Parser Replace module is an overkill and waste of operations for a simple replacement.
You can also use regular expressions directly in the replace function, just add the regex delimiters to it.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
Yes if wanting to replace with an inline function it would look like this:
many thanks. But the output still contains characters. I don’t know if it’s because the string in the middle of is Chinese and it can’t be recognized?
Thanks a lot. I also tried the replace function, but the output still contains characters. I don’t know if it’s because the string Bewteen is Chinese and it can’t be recognized.
Is it possible to post the string here to see what you are working with?
The following is a string. My workflow is to let deepseek generate the title of a youtube video, removing the thinking process. However, the generated string contains the thinking process. I want to use replace trigger or function to remove it, but it can’t be removed.
Okay, so a user asked me to help write a YouTube English title in a pop-up style that combines hot topics and high SEO search rates. First, I need to determine what the current hot topics are. For recent tech, maybe Apple’s WWDC or the newly released iOS 18 has heat. Also, AI technology has been hot, especially ChatGPT, Sora and those.
Users may need a tech-related title because when it comes to SEO and hotspots, tech videos usually have high search volume. Then consider keywords, such as “Apple’s New AI”, “iOS 18”, and “ChatGPT Killer” which may have high search rates . You need to combine these keywords and create suspense or conflict, such as “Shocked Everyone!” or “Biggest Update Yet!” phrases can attract clicks.
Pay attention to the structure of your headline, which is usually separated by vertical lines, with the first half attracting attention and the second half adding information. For example, “Apple’s New AI Just SHOCKED Everyone! (ChatGPT Killer?) | iOS 18 Biggest Update Yet!” creates a shocking effect in the first half of the headline, and then mentions the iOS 18 big update in the second half while sparking curiosity with a question mark. Make sure the headline is no longer than 60 characters to avoid being truncated. Also check that it complies with YouTube’s headline best practices, such as using capital letters to emphasize key points and using numbers and symbols to add appeal. Finally, make sure no quotation marks are used and output the results directly.
用户可能需要一个科技相关的标题,因为提到SEO和热点,科技类视频通常搜索量高。然后要考虑关键词,比如“Apple’s New AI”、“iOS 18”、“ChatGPT Killer”这些词可能搜索率高。需要把这些关键词组合起来,同时制造悬念或冲突,比如“Shocked Everyone!”或者“Biggest Update Yet!”这样的短语能吸引点击。
还要注意标题的结构,通常用竖线分隔,前半部分吸引眼球,后半部分补充信息。比如“Apple’s New AI Just SHOCKED Everyone! (ChatGPT Killer?) | iOS 18 Biggest Update Yet!”这样前半部分制造震惊效果,后半部分提到iOS 18的大更新,同时用问号引发好奇。确保标题不超过60个字符,避免被截断。同时检查是否符合YouTube的标题最佳实践,比如使用大写字母强调关键点,使用数字和符号增加吸引力。最后确认没有使用引号,直接输出结果。
Apple’s New AI Just SHOCKED Everyone! (ChatGPT Killer?) | iOS 18 Biggest Update Yet!
Solved, replaced with llama. Thanks to all.
Welcome to the Make community!
The above is not a regular expression pattern in a replace function.
The correct way to do this should be something like this:
e.g.: (paste this into the field)
{{ replace(27.text; "/<think>.*?<\/think>/g"; emptystring) }}
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.
still cannot work
If there are line breaks/newlines in the text, you can use this instead:
{{ replace(27.text; "/<think>[\w\W]*?<\/think>/g"; emptystring) }}
This only works if the text you are matching actually contains <think>
and </think>
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.