0

I need to extract file name of an image from one html string using Idoc Script regex functions.

Input string:

"<img src="/cs/content./file_name.png" alt="" />"

Output need to be:

"file_name"

Can you help me?

Alex Maimescu
  • 230
  • 2
  • 8

1 Answers1

0

Try this one. The first capturing group should contain the result:

<img\s+src\s*=\s*"[^"]*\/([^"]*)\.[^"]*"[^\/]*\/>
davidrac
  • 10,723
  • 3
  • 39
  • 71