Member since 01/19/2011

5 snippets

918 profile views

1 Comment(s) Posted

View their favorites

their Tags



first submission:submitting first snipplet

jatubio's Recent Snippets

« Prev 1 Next »
Search and returns the first results on a regex search If we use parenthesized or subpattern, can return with $result_number
0 554 posted 7 years ago by jatubio
Build a regex expression to all array elements are present in any order. Gets an array of strings (Sample: array("Access Denied","error","could not be retrieved") Return sample: '(?=.*Access Denied)(?=.*error)(?=.*could not be retrieved)
0 521 posted 7 years ago by jatubio
Replaces spaces by '\s+' which means one or more spaces $string can be one string or one array of strings
0 502 posted 7 years ago by jatubio
Check if a string it's json encoded using regular expressions Thanks to Jens Anders Bakke for his mootools code published in webfreak.no http://webfreak.no/wp/2007/09/07/jsontest-for-mootools/
0 669 posted 11 years ago by jatubio
Can add columns to a table checking before if there
0 575 posted 11 years ago by jatubio
« Prev 1 Next »