Possible cases: (pls ignore quote character”)
'#APPLE '
' PINEAPPLE'
' *LEMON '
' ORANGE… '
' * STRAWBERRY '
' PEAR '
' # BANANA'
' %KIWI '
I’ve try %.[a-zA-Z]{2,}+%
seem cannot solve this problem, any expertise can help to grep be
'APPLE'
'PINEAPPLE'
'LEMON'
'ORANGE'
'STRAWBERRY'
'PEAR'
'BANANA'
'KIWI'
Use a website test tool for Perl regular expressions, e.g.
http://www.spaweditor.com/scripts/regex/index.php
Enter your expression:
Enter your data:
And run the expression:
That uses the following function: