rosshind
asked on
regular expressions in jedit: matching whitespace and returns
Hi,
I'm trying to match whitespace characters (incliding tabs and, importantly, returns.
I'm using jedit and typing in the regular expressions in hte search box.
I'm trying to match the below code (and variations of it with maybe more spaces or more tabs where its alignment is different):
if (boolNeedsConnection){
boolSuccess=EComCon.commit OrRollback (con,boolS uccess);
}
below is my best effort, but it does not match anyything
if \(boolNeedsConnection\){[[ :space:][: blank:][:c ntrl:]]boo lSuccess=E ComCon.com mitOrRollb ack(con,bo olSuccess) ;[[:space: ][:blank:] [:cntrl:]] }
can you help?
I'm trying to match whitespace characters (incliding tabs and, importantly, returns.
I'm using jedit and typing in the regular expressions in hte search box.
I'm trying to match the below code (and variations of it with maybe more spaces or more tabs where its alignment is different):
if (boolNeedsConnection){
boolSuccess=EComCon.commit
}
below is my best effort, but it does not match anyything
if \(boolNeedsConnection\){[[
can you help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Certainly that re worked fine for me in JEdit
CEHJ,
I know. I am trying to wake up askers with these pings:) If I ask for experts recommendations, I post it in the text ;) Thanks anyway ;)
Venabili
I know. I am trying to wake up askers with these pings:) If I ask for experts recommendations, I post it in the text ;) Thanks anyway ;)
Venabili
>>I am trying to wake up askers with these pings:)
I know too ;-)
I know too ;-)
ASKER
Thanks for your answer, it works a treat.
Sorry about the delay in responding
Sorry about the delay in responding
8-)