I need to capture smiley faces like
:)
:P
:-P
=)
:D
;)
And so on, along with general text. This is my current regex:
[0-9A-Za-z'&-./()=:;]+
However, it doesn't match ()=:; for some reason. Am I missing something?
Edit: Based on Mark's feedback here is an example that I need to parse:
hi =as.) friend :) haha yay! ;) =) test test) R&R I.O.U. 24/7
This should extract:
hi
friend
:)
haha
yay
;)
=)
test
test
R&R
I.O.U.
24/7
I'm having trouble getting this to work using any of the solutions proposed.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…