Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Regular Expression


#1

Hi Tobias,

Could you write some hits to recular expression that can be used with SI 2.0 ?

for example i need to get both these title (number aren’t constant)

ITOR: 00E3B640 BO:00E32FB0
ITOR: 00E3B640 BN:00E36ED8 (Level)

so i tried with the following RegEx

ITOR.*(BO|Level)
but it’s doesnt work

Again i tried with
(ITOR.*BO)|(ITOR.*Level)
but also this doesn’t work

In both cases Si get only the first match (ITOR.*BO)

Regards
Ing Giuseppe Monteleone


#2

Hello Giuseppe,

I’m not sure why your expressions do not match. Actually, they should. This might be a problem with the regular expression component we use. The following expression works:

(BO|Level)

It’s not perfect since it matches more strings, but we try to find out why the other expressions do not work.