How to catch special indicated **characters** in an NSString and bold what's in between?

后端 未结 1 1064
忘了有多久
忘了有多久 2021-01-25 10:30

I\'m having trouble bolding any characters between an indicated pair of \"**\" characters. For example, in this NSString:

  \"The Fox has ran **around** the cor         


        
相关标签:
1条回答
  • 2021-01-25 11:29

    Perhaps this may help you:

    http://regex101.com/r/eF6pJ8

    \\*{2}([^*]*)\\*{2}

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