Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:02:53+00:00 2026-06-17T12:02:53+00:00

I want to create a regular expression that finds the word tjuv (thief in

  • 0

I want to create a regular expression that finds the word tjuv (thief in swedish), which can be assembled with other words (see below for examples) and/or come in different conjugations.

Examples:

  • cykeltjuv
  • biltjuv
  • tjuvarna
  • inbrottstjuvs

The one below works for tjuv and tjuvs (a thief’s), but what about the other conjugations as well as combinations with other words?

/tjuv(?:s){0,1}/ig

Now that I’ve learned you a little swedish it’s fair that you learn me some regular expressions 😉

EDIT: To be more specific, there’s actually no case I can think of that shouldn’t match with the word tjuv.

What I am doing is searching through phrases where the word tjuv exists, for example (translated to english):

1. När en familj kom hem från en utlandssemester upptäckte de att en inbrottstjuv
   hade varit i farten. <- MATCH!

2. På juldagen hade en cykeltjuv varit framme och stulit en cykel. <- MATCH


3. Violer är blå och rosor är röda <- No 'tjuv' and therefor no match
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:02:55+00:00Added an answer on June 17, 2026 at 12:02 pm

    I think this is what you want, the word "tjuv" with other letters before and/or ahead:

    /[a-z]*tjuv[a-z]*/ig
    

    See it here on Regexr

    But [a-z] is a character class covering only the ASCII characters a to z (Case independent because of the i modifier). But I think swedish has also some characters that are not included in that range.

    So either you

    • add the missing characters to the character class

    or

    • dependend on your regex flavour you can use \p{L} instead.

      \p{L} is a Unicode code point, matching every letter in any language. Would then look like:

        /\p{L}*tjuv\p{L}*/ig
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a regular expression to match a word that begins with
I want to create a regular expression such that it can accept following values:-
I want to create regular expression for password that has length of atleast 6
I'm trying to create a regular expression that can contain some of those three
How can I create a regular expression that will grab delimited text from a
I want to create a regular expression in java using standard libraries that will
I want to create a regular expression that matches input text that starts with
I want create wordpress website into which I want create user management... That means
How can I create a regular expression to search strings with a given pattern?
I'm trying to create regular expression that filters from the following partial text: amd64

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.