【发布时间】:2021-12-14 09:46:04
【问题描述】:
编辑:严格来说,它们不是首字母缩写词,但你明白我的意思。
我发现这个资源非常有用,https://newbedev.com/regex-for-pascalcased-words-aka-camelcased-with-leading-uppercase-letter,但是如果我需要调整小驼峰式版本以允许在名称中间使用一组首字母,该怎么办。例如,作者为小驼峰大小写提供了一个正则表达式,[az]+((\d)|([A-Z0-9][a-z0-9]+))*([AZ])?将匹配以下单词:
xmlHttpRequest
newCustomerId
innerStopwatch
supportsIpv6OnIos
youTubeImporter
youtubeImporter
affine3D
但是呢;
xmlHTTPRequest
名称中间的大写字符串在哪里?
【问题讨论】:
标签: regex