regex - How to get text of URL from notepad plus? -
i have text:
1135/how-are-you-86789/pp 1125/example-fran%c3%a7aise-86749/pp 1125/episode-6-movie-86749/pp
can give me regex can text "something", please ?. so, ouput be:
how-are-you example-fran%c3%a7aise episode-6-movie
how like
/[a-za-z]+(?:-[a-za-z]+)+/g
edit 1
to replace contents, small change in regex
^(?:[^\/]+\/)?([a-za-z]+(?:-[a-za-z]+)+).*$/gm
replaced \1
, capture group content
edit 2
^[^\/]+\/([^-\/\n]+(?:-[^-\/\n]+(?=-))+).*$
replace \1
Comments
Post a Comment