RegexSearch icon indicating copy to clipboard operation
RegexSearch copied to clipboard

“Global” should be the default; separate clickable matches.

Open ariel-co opened this issue 6 years ago • 5 comments

Hi,

(Sorry if this looks like several requests in one, but I think it's part of the same base issue)

Currently, you only get the first match unless you turn on “global”, and even then they're all concatenated into a single textarea, so to locate each match we have to Highlight and hunt for them visually:

image

It'd be nice to output to an ul with clickable lis, and maybe search globally:

image

ariel-co avatar Sep 14 '18 01:09 ariel-co

Thanks for the suggestion, Actually you can manipulate the result by specifying a Template, to separate the results by a new line you can use the template $0$n, $0 means the whole match and $n means a new line after the match, you can also use \0\n instead of $0$n

Mohd-PH avatar Sep 14 '18 11:09 Mohd-PH

Would it be possible to click the match to go to its location on the page? That's an interesting feature. To achieve this now, I have to copy-paste the matching value into my browser search field and go over all browser search matches to find it.

doodhout avatar Sep 14 '22 09:09 doodhout

For me, separate the results by a new line works with $0\n template.

mambusskruj avatar Jan 10 '23 17:01 mambusskruj