0
votes

I am trying to extract the file name with jmeter regular expression extractor. my parsed url will be /xxxx/systems/fileName.ext , the file name and the extension will be dynamic. so I can't use any static name in the parser. All I know is the third / . I tried with multiple combinations . but no luck. Any help appreciated.

1
If you've already tried something, could you edit into your question so we can help you pin down where exactly you went wrong? - Michelle

1 Answers

0
votes

This will give you everything at the end of the string that isn't a forward slash:

[^/]+$

Broken down:

[^/] - Match a character that isn't a forward slash

+ - Match one or more (as many as possible)

$ - Match at the end of the string