jeudi 9 mai 2019

Regex result with no especial Character (exclude some chars)

Imagine we want to extract all strings which starts with 1 and ends with aa>>> from a file .

So we will use this regex :

1(.*)+a{2}>>>$

This Regex will return all values witch contains aa>>>

For example with testing regex on 32 123.123.bmp aa>>> it will return 123.123.bmp aaa>>>

Is There any way to exclude aa>>> from result ?

For above example I want 123.123.bmp as result .

Aucun commentaire:

Enregistrer un commentaire