regular expression not matching begining of string

Posted on 2014-10-15
Last Modified: 2014-10-15
Need a regular expression pattern that does not match the beginning of a string.  For example:

abc123      = no match
1abcdi98r = match
deg0abc    = match
.abc            = match
Question by:NevSoFly
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
LVL 16

Expert Comment

by:Joshua Grantom
ID: 40383023
Are you trying to find abc anywhere that is not at the beginning of a string?

LVL 84

Expert Comment

ID: 40383026

Author Comment

ID: 40383144
Here is a more complete picture.  I am trying to find "(" that is not at the beginning of the string and does not have a -, +, /, *,  or ( directly in-front of it.  I do apologize for my original question being so far off the mark.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 16

Expert Comment

by:Joshua Grantom
ID: 40383149
can you give us an example of a full string to go with that?
LVL 84

Accepted Solution

ozo earned 500 total points
ID: 40383169

Author Closing Comment

ID: 40383292
Thanks, I am assuming that \)[^-+/*)] would work similarly for the end of a string.  Is that correct?

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
regular expression - parent domain only 9 110
Need some help with grep 7 102 c# execute .bat server side problem 6 85
Regular Expression needed 4 18
I have been reconstructing a PHP-based application that has grown into a full blown interface system over the last ten years by a developer that has now gone into business for himself building websites. I am not incredibly fond of writing PHP code o…
As most anyone who uses or has come across them can attest to, regular expressions (regex) are a complicated bit of magic. Packed so succinctly within their cryptic syntax lies a great deal of power. It's not the "take over the world" kind of power,…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question