regular expression: extract last 2 characters

前端 未结 3 1097
遇见更好的自我
遇见更好的自我 2020-12-17 23:38

what is the best way to extract last 2 characters of a string using regular expression.

For example, I want to extract state code from the following

\"A_IL\"

3条回答
提交回复
热议问题