RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
^(?:(?:((?![0-9_])[a-zA-Z0-9_]+)\.?)+)(?<!\.)$
Description
Matches that an input string is a valid namespace definition. It also captures each word / section in the namespace in case they are needed. The rules this was created by are: 1)A series of words separated by a periods 2)does not begin or end with a period, 3)contains only letters numbers and underscores, 4) none of the words begin with a number, and 5) contains no whitespace
Matches
Lang.Toolkit.Configuration | word_1.wo_rd2.word3.LastWord | word_1.wo_rd2.wor3d
Non-Matches
Lang.1App | word_1.2wo_rd | part1.2part
Author Rating: Not yet rated. Michael Lang
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials