Flex RegExp to Java RegExp

后端 未结 1 2013
没有蜡笔的小新
没有蜡笔的小新 2021-01-26 09:13

Recently i was looking for help to extract some pattern of a URL using RegExp in flex, Few guys kindly helped me to get it done. See this I need to do it again in java layer, i

相关标签:
1条回答
  • 2021-01-26 09:21

    { is a meta character in Java regexes, for bounded repetition, e.g. a{1,2} matches at least 1, at most 2 'a's. As you are not using it for repetition, you ought to escape each { with \\.

    0 讨论(0)
提交回复
热议问题