Link to home
Start Free TrialLog in
Avatar of Angela4eva
Angela4eva

asked on

regular expression replaceif the thereis a non alpha numeric charters at the end of the string

I wnat to replace with empty string if there is an apha numeric character at the end of the string
Avatar of Angela4eva
Angela4eva

ASKER

I want to replace that chacters only

test1234*
then  return test1234
Avatar of Rgonzo1971
Hi,

pls try

"test1234*".Replace("\W$", "");

Regards
ASKER CERTIFIED SOLUTION
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial