标签: regex
任何人都可以帮助获得下面输入字符串的正则表达式构建,我需要提取标记为☒的数据。 例如:-
☒
输入文字:-
☐I am good ☐This is sky ☒Nice to meet you ☐hello world
输出:- 见到你很高兴
答案 0 :(得分:0)
只需使用
^☒.+
请参见a demo on regex101.com。
☒[^☐\n]+
请参见another demo on regex101.com。