Skip to main content
samy@123
Inspiring
May 21, 2021
Answered

scripting regex

  • May 21, 2021
  • 1 reply
  • 321 views

Any regex to mach the bold part

 

Figs. 4–7. Distribution and habitat of Amazonopsis cerdani, new species. 4) Distribution in French Guiana (1: Crique Nouvelle France; 2: Crique Florian tributary; 3: Crique Bois Bandé; 4: Crique Galfa tributary; 5: Courcibo River tributary); 5) Stream habitat; Crique Florian tributary, Montagne de Fer; 6) Submerged leafy debris microhabitat; Courcibo River tributary, La Trinité National Nature Reserve; 7) Live male on leaf.

This topic has been closed for replies.
Correct answer radzmar

RegEx is for filtering strings not their formattings, so you can use it to identifiy bold text portions. However, to filter for the bolded text passage in a string use: /^Figs.\s?\d–?\d?\./g

1 reply

radzmar
Community Expert
radzmarCommunity ExpertCorrect answer
Community Expert
May 21, 2021

RegEx is for filtering strings not their formattings, so you can use it to identifiy bold text portions. However, to filter for the bolded text passage in a string use: /^Figs.\s?\d–?\d?\./g