‎2011 Sep 24 2:44 PM
I need to find string literals enclosed between single quotes(e.g. 'Sap') from a line.
I used '''.+''' as regular expression pattern
It gives correct result is there is only one string literal present in the sentence. But if there are two or more strings present then it gives only one search result starting from first single quote to last single quote.
E.g.
Case 1:
Sentence: Sap 'community' network
Search result : 'community'
Case 2:
Sentence: 'Sap' community 'network'
Search result: 'Sap' community 'network'
How should be the regular expression so that it gives 'Sap' and 'network' as two serch results in case of case 2?
‎2011 Sep 24 5:21 PM
Hi,
Did you already have a look to program DEMO_REGEX_TOY?
Kr,
m.
‎2011 Sep 24 5:18 PM
Hi,
use FIND ALL OCCURRENCES OF REGEX '''\[^''\]+''' IN ... RESULTS ...
Sandra
‎2011 Sep 24 5:21 PM
Hi,
Did you already have a look to program DEMO_REGEX_TOY?
Kr,
m.
‎2011 Sep 25 8:36 PM