Skip to content

JystoDussPipouPrime/mini_regexec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

int mini_regexec(const char *text, const char *pattern)

RETURN VALUE

	NULL parameter: -1
	text matches the pattern : 1
	text don't matches the pattern : 1

PATTERNS SUPPORTED

	[0-1]
	[0-9]
	[a-f]
	[a-f0-1]
	[0-9a-f] / [a-f0-9]
	0x[0-9] / 0X[0-9]
	0b[0-9] / 0B[0-9]
	0[0-9]
  • dangerous if not [a-z] / [a-Z0-9] / [A-Z0-9a-Z] etc

output

Base Range Prefix Example
2 0, 1 0b/0B 0b1101 = 13
8 0-7 0 052 = 42
10 0-9 123 = 123
12 0-9 A,B A6 = 126
16 0-9 A-F 0x/0X 0xFF = 255
20 0-9 A-J 1A = 30
60 0-59 : 1:30 = 90

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published