Thread Regex Problem (3 answers)
Opened by bandchef at 2014-05-14 14:55

Raubtier
 2014-05-14 15:52
#175536 #175536
User since
2012-05-04
1076 Artikel
BenutzerIn
[default_avatar]
Hm, das erlaubt aber vieles:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
$ perl -E'(/(TFId=(?:,?(?:\d+|nil))*)/ && say "yes") || say "no" while <> '
TFId=1
yes
TFid=,
no
TFId=1,
yes
TFId=1,,,2
yes
TFId=nilnilnil
yes

View full thread Regex Problem