Community
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Regular Expression does not match java error

 
Post new topic   Reply to topic    Community Forum Index -> Java
View previous topic :: View next topic  
Author Message
textpad@kswenson.oib.com



Joined: 09 Apr 2010
Posts: 2

PostPosted: Fri Apr 09, 2010 8:02 pm    Post subject: Regular Expression does not match java error Reply with quote

I have used TextPad for many years, and being able to compile and double click on the error lines has always worked until this last version. I have struggled with this, tried many options, but every time I get the enemic error message "Can't jump to the item under the cursor".

I am using the following regular expression, from the TextPad help:

^\([A-Za-z]:[^:]+\):\([0-9]+\):

I do NOT have Posix regular expressions selected. The help file says this is not a POSIX expression (but I hav tried converting it to POSIX and using that option -- no change)

The line I am trying to match is:

d:\sandbox\ps\nugen\src\com\fujitsu\nugen\SectionWiki.java:469: cannot find symbol

I have 1->File, and 2->line number

As far as I can see, this should match. At the beginning of the line the drive letter d, then a colon, then everything up to the next colon is exactly the full file name and path. The second group starts after that colon, and selects digits up to the third colon. The expression should match this line, but it does not.

What am I doing wrong? How can I get a better error message, or better diagnostics about this?

I can't get anything to match. I tried simplified expressions, but unfortunately it has to match a file name and line number otherwise I can't tell if it matched or not.

Any ideas on why this does not work?
Back to top
View user's profile Send private message
ben_josephs



Joined: 02 Mar 2003
Posts: 2360

PostPosted: Fri Apr 09, 2010 9:19 pm    Post subject: Reply with quote

Was Posix regular expression syntax deselected at the time you set the regular expression? Make sure it is not selected and enter the regular expression again.
Back to top
View user's profile Send private message
textpad@kswenson.oib.com



Joined: 09 Apr 2010
Posts: 2

PostPosted: Fri Apr 09, 2010 10:02 pm    Post subject: Reply with quote

Thank you so much. I thought I had tried every combination, shutting down, restarting,etc.

Here is the pattern that worked:

1) deselect POSIX
2) exit TextPad
3) restart TextPad

I checked to make sure that the regular expression was correct (it was) but did not modify it at this point.

Now it works.

I think the trick is: the POSIX flag is read ... only on startup?

SUGGESTION FOR PRODUCT: the error message should say what it thinks the POSIX setting was that it used, and probably should say the expression that it tried to use. e.g. "Unable to match the (POSIX/non POSIX) expression XXXXXXX to the line under the cursor."
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Community Forum Index -> Java All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB