Created
January 9, 2019 16:39
-
-
Save faryar76/ee5e9511f94f0df8dc9773cd1d0b4a79 to your computer and use it in GitHub Desktop.
with this regex can get english chars from first of string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^[\s\w\d\x21-\x2f\x3a-\x40\x5b-\x60\x7b-\x7e]* | |
//teststringاین متن فارسی است | |
//output -> teststring | |
https://stackoverflow.com/questions/8961833/regular-expression-to-match-english-words-with-some-other-characters |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment