- تاریخ ثبتنام
- 2020-06-06
- ارسالیها
- 2,943
- راهحلها
- 1
- پسندها
- 153
- امتیازها
- 63
- مدالها
- 7
- نویسنده موضوع
- مدیرکل
- #1
Hey,
i found this code on stackoverflow to remove whitespaces:
B4X:
I have a string like this: mysz = "name=john age=13 year=2001"; I want to remove the whitespaces in the string. I tried trim() but this removes only whitespaces before and after the whole string...
stackoverflow.com
on B4A i tried this:
B4X:
but it is not working.
i found this code on stackoverflow to remove whitespaces:
B4X:
st.replaceAll("\\s","")

I have a string like this: mysz = "name=john age=13 year=2001"; I want to remove the whitespaces in the string. I tried trim() but this removes only whitespaces before and after the whole string...
on B4A i tried this:
B4X:
Regex.Replace("\\s",New, "")
but it is not working.
نام موضوع : Regex - remove whitespaces
|
دسته : b4xfeed