javascript regex - look behind alternative?

前端 未结 6 1869
时光取名叫无心
时光取名叫无心 2020-11-22 05:44

Here is a regex that works fine in most regex implementations:

(?

This matches .js for a string which ends with .js exc

6条回答
  •  无人及你
    2020-11-22 06:25

    If you can look ahead but back, you could reverse the string first and then do a lookahead. Some more work will need to be done, of course.

提交回复
热议问题