Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $pcre_regex = '
- /
- (?(DEFINE)
- (?<number> -? (?= [1-9]|0(?!\d) ) \d+ (\.\d+)? ([eE] [+-]? \d+)? )
- (?<boolean> true | false | null )
- (?<string> " ([^"\\\\]* | \\\\ ["\\\\bfnrt\/] | \\\\ u [0-9a-f]{4} )* " )
- (?<array> \[ (?: (?&json) (?: , (?&json) )* )? \s* \] )
- (?<pair> \s* (?&string) \s* : (?&json) )
- (?<object> \{ (?: (?&pair) (?: , (?&pair) )* )? \s* \} )
- (?<json> \s* (?: (?&number) | (?&boolean) | (?&string) | (?&array) | (?&object) ) \s* )
- )
- \A (?&json) \Z
- /six
- ';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement