Welcome! Log In Create A New Profile

Advanced

Remove whitespaces from $args

April 28, 2016 06:46AM
Hi,
Tell me please, how can I remove all spaces from $args ?

I create solution, it remove up to 5 spaces. But it not best way i think.

if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
if ($args ~ (.*)\s(.*)$) { set $args $1; }
Subject Author Posted

Remove whitespaces from $args

Hett April 28, 2016 06:46AM

Re: Remove whitespaces from $args

Francis Daly April 28, 2016 01:18PM

Re: Remove whitespaces from $args

Hett April 29, 2016 02:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready