Best4FREE Posted March 29, 2008 Share Posted March 29, 2008 HI is there a way i can delete all symbols and this in clipboard ? only this NOT delete from clipboard 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz Link to comment Share on other sites More sharing options...
cppman Posted March 29, 2008 Share Posted March 29, 2008 (edited) $sText = ClipGet() $sText = StringRegExpReplace($sText, "[^A-Za-z0-9 ]", "") ClipPut($sText) Edited March 29, 2008 by cppman Miva OS Project Link to comment Share on other sites More sharing options...
Best4FREE Posted March 29, 2008 Author Share Posted March 29, 2008 thanks man but you can tell me StringRegExpReplace($sText, "[^A-Za-z0-9]", "") why this ? [^ ] ?? Link to comment Share on other sites More sharing options...
cppman Posted March 29, 2008 Share Posted March 29, 2008 (edited) In short it means, replace all characters that are not equal to what is inside the brackets(A through Z, a through z, 0 through 9, and a space), with an empty character ("").Look up StringRegExp in the help file. Edited March 29, 2008 by cppman Miva OS Project Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now