Hi everyone, I keep trying to make a regular expression for XML in my .xsd.
This expression should check ISBN-13, but I could not get further than this:
ISBN (978|979)[ |-][0-9]{1,5}[ |-][0-9]{1,7}[ |-][0-9]{1,7}[0-9]{1}
This is normal if someone fills in the correct ISBN13, but it is also possible to make ISBNs that are much longer (for example, you can still make the first block of numbers 5 long, and the second block 7 digits and the third also 7 digits).
I am very new to this thread and I cannot solve this problem, so I hope someone can help me or solve my problem.
I know what ISBN 13 consists of, I checked Wikipedia and other websites, but my actual problem is the regular expression it self.
I hope they didnβt ask about this before, so Iβm sorry if someone asked this question before. jajay07
source share