- The first Regular Expression Library on the Web!

Please support RegExLib Sponsors


Regular Expression Details

Title Test Find Pattern Title
(?i:)(?<=\.)\D\D(?:-\D{2,3}?(?:-\D\D\D\D)?)?(?=.resx) #Just change the extension if you want to take a Culture out of different type of file name. #The result will always be of the format: #(2CharacterLanguage)-(2or3CharacterLocale)-(4CharacterScript) #where the second or third set are optional #this matches the format of the CultureInfo object in Microsoft .NET
This expression pulls the Culture name out of a .resx file name.
Matches | something.zh-CHS.resx |
Non-Matches | something.zh-X.resx |
Author Rating: Not yet rated. Eric Falsken
Source Ryan McGrail and I
Your Rating
Bad Good

Enter New Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Pattern
Name: Quang Nguyen
Date: 3/21/2007 1:53:12 AM
It's not matching.

Copyright © 2001-2018, | ASP.NET Tutorials