正则:替换一行中的最后一个逗号

现在有个需求,需要将:

Wang T., Zhang J., Li S.

这种格式转换为:

Wang T., Zhang J. & Li S.

即将最后一个逗号转换为&符号。

搜索了一下,最后发现可以使用这种正则进行替换:

,(?=[^,]+$)

 

参考:

  1. http://house-of-fusion.10909.n7.nabble.com/How-to-find-the-last-comma-and-the-word-following-it-w-regex-td113028.html

已发布

分类

来自

标签:

评论

《 “正则:替换一行中的最后一个逗号” 》 有 13 条评论

  1. médicaments bon marché kamagra

    commande kamagra en ligne sans abonnement

  2. buying enclomiphene generic for sale

    get enclomiphene purchase australia

  3. androxal doctor

    discount androxal generic usa

  4. buy cheap dutasteride purchase online safely

    howl to get dutasteride without a prescrtiption

  5. purchase flexeril cyclobenzaprine price south africa

    cheap meds flexeril cyclobenzaprine

  6. get gabapentin no prescription mastercard

    discount gabapentin generic next day delivery

  7. fildena discount

    ordering fildena usa buying

  8. cheapest buy staxyn cheap new zealand

    ordering staxyn generic from canada

  9. how to order itraconazole price singapore

    cheap itraconazole canada

  10. buy cheap avodart generic london

    buy cheap avodart us prices

  11. buy cheap xifaxan cheap prescription

    buy xifaxan generic efficacy

  12. cheapest buy rifaximin generic information

    buy cheap rifaximin no prescription needed

  13. kamagra kanada zdarma vzorek

    levné generické kamagra z kanady

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注