![]() |
When using regex_match, how would I be able to use the - character? An example of the code is posted below. What would be the correct format? Thanks!
Code: $rules = [
Escape the - character with a backslash:
PHP Code: $rules = [
Regular expression tester trainer
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |