Regular Expression
Regex is used to match any pattern against any string
Its use for pattern matching
Its very powerful but use only in extreme case (Increase the lookup time)
wild card -> . $ * ^ + ? |
match scope -> () {} []
regex vs string/array functions ->
preg_match() ->
preg_replace() ->
preg_split() ->
preg_grep() ->
Regex is used to match any pattern against any string
Its use for pattern matching
Its very powerful but use only in extreme case (Increase the lookup time)
wild card -> . $ * ^ + ? |
match scope -> () {} []
regex vs string/array functions ->
preg_match() ->
preg_replace() ->
preg_split() ->
preg_grep() ->
No comments:
Post a Comment