RegEx Search

I am looking to do a regular expression search, where I want to search for all "<form" but disclude any "<form action-"/search".  I am not sure how to disclude the piece that I want, and also still include the quotation mark in the middle.  Any ideas?
LVL 1
mopar003Asked:
Who is Participating?
 
käµfm³d 👽Commented:
How about

    \<form(?!action\-\"/search\")
0
 
mopar003Author Commented:
The search went through but found nothing, which I know is incorrect.  I just need to find all the forms, without the main form for the search that is on all the pages.
0
 
ahoffmannCommented:
does your regex flavour support lookahead?
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
mopar003Author Commented:
Don't know.  I am using a program called Advanced Find and Replace.
0
 
ahoffmannCommented:
you need to check your docs
if it does not support lookahead, you cannot solve your problem with that tool
0
 
Terry WoodsIT GuruCommented:
It probably won't help, from what you've said so far, but kaufmed's suggestion should include a space I think, or it would include the ones you want to exclude:

\<form(?! action\-\"/search\")
0
 
Terry WoodsIT GuruCommented:
I downloaded the tool you have (and tested it, and read the docs) and it doesn't appear to support the look ahead functionality, so I agree with ahoffmann that it will not solve this problem for you. Do you have access to a linux environment? A find command combined with grep or egrep in linux would likely do the job.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.