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 8567995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:00:30+00:00 2026-06-11T18:00:30+00:00

In an application which is intended for germany ,am writing some webservices i have

  • 0

In an application which is intended for germany ,am writing some webservices i have to apply some validation rules for username ,password etc.. like alphanumeric,special charecters not supported etc.. i have used regular expression to achive this but it fails,it works fine for english language,but it does not support German language, how can i tackle this issue.

Any help will be appreciated…preg_match("#.*^(?=.{8,20})(?=.*[a-zA-Z])(?=.*[0-9]).*$#", $string)

  • 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-11T18:00:31+00:00Added an answer on June 11, 2026 at 6:00 pm

    First, use the ‘u’ modifier for UTF-8 (whose encoding you should be using for international applications). Secondly, if you are trying to allow umlauts, etc. within the [a-zA-Z] block, you can add the specific characters you want using escape sequences as follows:

    individually:

    preg_match( "/\x{00FC}/u" , 'ü' ); // 1
    

    or in a group:

    preg_match('/^[\x{00DF}\x{00E4}\x{00C4}\x{00F6}\x{00D6}\x{00FC}\x{00DC}]+$/u', 'ßäÄöÖüÜ'); // 1
    

    …or just use the word letter match \w (noting that this will also allow numbers and underscore and other international characters which can serve as word letters).

    preg_match( "/\w/u" , 'ü' ); // 1
    

    (I’m not sure what you are doing with the ^ in the middle of the expression, btw, without an ‘m’ modifier.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some .aspx pages in my asp.net web application which only admin can
Background I'm writing a web application and I have a stored procedure which inserts
I have a console application which is intended to just keep running until it
I'm writing an Android application which requires the user to login. I have a
I have developed an application which is intended to allow users to execute queries.Once
I'm building an ASP .NET 2.0 (C#) based web application, which is primarily intended
I have an application which uses the microsoft kinect device. The thing is that
I have a WPF application which connects to a remote database over internet and
I have an application which logs in into a webservice. I start a new
We are developing an application which is read heavy and could possibly have millions

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.