Can anyone help to get a regex build for below input string,I need to extract the the data which is marked ☒
.
Eg:-
Input text:-
☐I am good
☐This is sky
☒Nice to meet you
☐hello world
Output :- Nice to meet you
Can anyone help to get a regex build for below input string,I need to extract the the data which is marked ☒
.
Eg:-
Input text:-
☐I am good
☐This is sky
☒Nice to meet you
☐hello world
Output :- Nice to meet you
Just use
^☒.+
☒[^☐\n]+