Opened 5 months ago
Last modified 4 months ago
#7142 new feature request
Enable regex search on translate.wordpress.org
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Translate Site & Plugins | Keywords: | |
Cc: |
Description
Pretty please
Change History (6)
#3
@
5 months ago
Can you describe the problem that would be solved by enabling a regex search, with some examples?
#4
@
5 months ago
Well, I believe I can. I'm not asking this just for fun, but because I often find the need to use a regex, which is not currently possible. For instance, I frequently check translations to ensure they align with existing ones, but sometimes a more granular search is required. For example there are situations where I specifically want to find phrases that start with a specific text, especially when there are numerous results to sift through. While I don't have specific examples at the moment, trust me, there are many cases where this is necessary. I'll make an effort to provide some examples once I've gathered them.
#5
@
5 months ago
Example # 1: Let's say I want to search for any string starting with "Sorry" and including "post" ->
look what you get just going for "Sorry":
https://translate.wordpress.org/projects/wp/dev/de/default/?filters%5Bterm%5D=Sorry
#6
@
4 months ago
Example # 2: Searching for a string which only has 1 character ->
"I knew there was this 1 char unicode sign somewhere.."
https://translate.wordpress.org/projects/meta/wordpress-org/de/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=16156486
For those who don't know what Regex is:
https://help.relativity.com/RelativityOne/Content/Relativity/Regular_expressions/Searching_with_regular_expressions.htm
https://www.php.net/manual/en/function.preg-match.php
https://www.w3schools.com/php/php_regex.asp