Skip to content

Added kagi bang using regex to determine a search year - #452

Merged
nobodywasishere merged 2 commits into
kagisearch:mainfrom
twizzlebizzle:yearsearchbangs
Aug 12, 2026
Merged

Added kagi bang using regex to determine a search year#452
nobodywasishere merged 2 commits into
kagisearch:mainfrom
twizzlebizzle:yearsearchbangs

Conversation

@twizzlebizzle

Copy link
Copy Markdown
Contributor

Using URL: https://kagi.com/search?q=$2&from_date=$1-01-01&to_date=$1-12-31
REGEX: \b((?:20|19)[0-9]{2})\b\s+(.*)
Syntax !years YEAR QUERY

Allows searching not just !year but a whole year in the past.

I.e
!years 2006 World Cup

@nobodywasishere
nobodywasishere merged commit c9b78b7 into kagisearch:main Aug 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants