Microsoft
Software
Hardware
Network
Question : Negate of existing String inside of RegEx
Hi,
I need to build a RegEx where the following String will be found:
PERFORM XYZ-SECTION
or
perform abc-section
I need to exclude this:
perform varying i1 from 1 by 1
or
PERFORM VARYING I1 FROM 1 BY 1
All case-insensitive.
I found the examples above with the follwing RegEx:
$line=~ m/^.{6}\s+PERFORM\s+(\S+)(
$|\s|\./i
But with the given RegEx I found the loop's "Perform Varying" too. How build this RegEx to exclude the loops.
Using Perl as language for my RegEx.
Answer : Negate of existing String inside of RegEx
1:
$line=~ m/^.{6}\s+PERFORM\s+(?!varying)(\S+)($|\s|\./i
Random Solutions
Exchange activesync from iphone not connecting to Exchange 2003 server via port 443
Update RevTex in TexLive and Kile - Fedora 13
I cannot change the ownership and rights of a folder, access denied
Riverbed with Cisco GRE Tunnel
Windows Update site fails to load
MS SQL Server only using one core on a 4 core box
php mysql storing date time
VPN disconnects over 2 way satellite
How to disable form fields in Coldfusion flash form by clicking a checkbox?
Older Flash document potential issues