Avatar of web_ohh
web_ohh

asked on 

Regular Expression to only accept a particular domain

We're making a change to our BES to include the PIN in the http header and we would like to restrict it to only our domain.
RIM provided this regular expression in there docs: ".+/.rim/.net", however, it's not working.
I would normally RTFM like any self respecting nerd would, but I'm kind of pressed for time.
I'm looking to match "http://myservername.mydomain.com" but not "http://google.com."
Regular Expressions

Avatar of undefined
Last Comment
ddrudik
ASKER CERTIFIED SOLUTION
Avatar of ddrudik
ddrudik
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of web_ohh
web_ohh

ASKER

Hand that man a prize!
I just lost some serious nerd street cred here, but I'm in a hurry - lol
Thanks for the timely response!
Avatar of ddrudik
ddrudik
Flag of United States of America image

Thanks for the question and the points.
Regular Expressions
Regular Expressions

A regular expression ("regex") is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings, or string matching, i.e. "find and replace"-like operations. Regular expression processors are found in several search engines, search and replace dialogs of several word processors and text editors, and in the command lines of text processing utilities, such as sed and AWK. Many programming languages provide regular expression capabilities, some built-in, for example Perl, JavaScript, Ruby, AWK, and Tcl, and others via a standard library, for example .NET languages, Java, Python and C++ (since C++11). Most other languages offer regular expressions via a library.

7K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo