I need to remove symbols like ",./! and so on from the beginning and the end of the string. but still need to leave numbers and characters like ąčęėįšųž and many more from UTF-8. for example:
- the result of string
&g&g
should beg&g
; - the result of string
ąčęėį
should beąčęėį
; - the result of string
"name"
should bename
; - the result of string
69
should be69
- the result of string
--abc---
should beabc
I believe it should be done using preg_replace
but can't find how.