Quantcast
Channel: ProZ.com Translation Forums
Viewing all articles
Browse latest Browse all 8104

Does anyone know how I combine my two regular expressions?

$
0
0
Forum: MemoQ support
Topic: Does anyone know how I combine my two regular expressions?
Poster: Fredrik Pettersson

I have these two .NET regular expressions:

Minimum 7 words, maximum 31 words: ^(?:[\w]+\s){6,30}[\w]*[\s\.?!;\,]*$
Match three words in any sequence: (?=.*\balpha\b) (?=.*\bbeta\b) (?=.*\bgamma\b).*

To combine them into one single regex for use in MemoQ, which one should I put as first and as second?

What do I use to combine them? - a pipe or parentheses? Or nothing, just write one after each other?

Viewing all articles
Browse latest Browse all 8104

Trending Articles