Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想分两步加入两个关于航班号的表格。
我的想法是找到第一个数字字符的位置并匹配字母前缀,但这可能太慢了。这里有更好的解决方案吗?
您可以使用积极的前瞻。就像是:
([a-zA-Z]+)(?=\d+)
这将仅捕获航空公司代码,然后您可以匹配