Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reg Expressions

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
I am new to reqular expressions and what an expression would look like that had to be in this format

allkids_domain\text

so the user would have to put in allkids_domain with a \ and then there has to be some text afterwords, but an unknown amount.
 
^"allkids_domain\"\w*

k, I am NO expert on reg expressions, but this seems to make sense:
^ means starts with
"allkids_domain\" is just hte literal
\w means a single character (letter or number)
* means 0 or more of the characters

This link gives you a list of the regexpression operators. Its a good lead anyway in case my attempt failed.


hth

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top