php - regepx - odd whitespaces in string -


i'm doing regexp on strings , in pattern match whitespaces \s

but in strings experience strange spaces.. when converted hex a0

how convert strange spaces normal space can detected regexp , both , \s?

when string presented utf8 a0 chars represented

input in hex

a03535a03832a03834a03135a02da053452e6e723aa0444ba03132a03638a03336a03933 

input string

 55 82 84 15 - se.nr: dk 12 68 36 93 

a0 representation of   - non-breaking space.

you can match with:

[\s\xa0] 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -