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
Moving shares in SBS server 2008
Windows forms - behavior when pushing enter key in text boxes.
Copy "Protect Sheet" setttings to all tabs in a workbook
Windows Printer atutomatic disabled in Terminal services configuration (RDP-Tcp properties).
changed my boot disk controller type and now unable to boot
checking login & pass with curl
Data adapter Insert/Update
Why cant I use the native mail client on the new HTC Evo to syn with ActiveSync to our OWA site?
"Include inheritable permissions from this object's parent" is gey out in Windows 2008
Create chart that ignores zero values