Jump to content

[SOLVED] Using Negation and Alteration In Regex


Zhadus

Recommended Posts

Thanks for reading,

 

Anyway I need help with some regex, here is the pattern I have so far:

(\b[^\s]+\b\s*\()

Which will identify terms such as:

blah(

scien (

examp    (

 

What I want it also to negate, are the terms:

if (

elseif  (

 

Basically the term itself should not be if or elseif. I'm having trouble changing the [^\s] (No white space in the term) to also include no matching of the strings "if" and "elseif".

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.