Ness-sp
unread,Jul 19, 2012, 1:49:34 PM7/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to re...@googlegroups.com
Hi,
the following strings should be matched with a RegEx function:
X000002
0X00002
00X0002
000X002
0000X02
Not matched should be:
0000002
00000X2
2X00002
With
[0,1,2]*[0]*X[0]*0[1,2][0,1,2]*
I manage not to match the first two, which shouldn't be matched, the third one (2X00002) is however still be matched.
I somehow have to specify this string of 6 letters/cifers, consistent of both 0 and X. It may not be shorter than that and it has to contain the X.
[0,X]{6}
unfortunatly matches 000000 aswell.
How do I do that?