TextAnalysisTool / Releases

Repository for storing release artifacts (ex: binaries).
88 stars 26 forks source link

How to use logic 'and' in regular expression?? #33

Closed wangfukai closed 8 years ago

wangfukai commented 8 years ago

I can't find the right way to use logic 'and' in regular expression. 'A & B' and 'A && B' can't work. Also the CSDN link in help documentation about regular expression is out of date.

data-nerd commented 8 years ago

This is a question about regular expressions, not TextAnalysisTool.net, but here you go: Check out http://stackoverflow.com/questions/469913/regular-expressions-is-there-an-and-operator The short answer is to use something like this: (?=._word1)(?=._word2)

wangfukai commented 8 years ago

Thanks very much! It work like this : (?=._Fukai)(?=._Wang).