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
Visual studio Team System
Resolve User Name Display Issue and Change Admin PWD in Windows Server 2003
Mouse wheel action on scroller
SBS2008 migration to Windows 2008 Std
Multi-Site, single IP and DNS records
Trouble installing Panasonic Printer/Copier devices on SBS 2008
Server does not boot
Exchange 2010 Trans from Ex 2003
PHP Statement that shows a percentage of a price
unable to enable Archive Mailbox in Exchange 2010