First attempt doesn't seem to work
Posted: Tue May 28, 2013 7:09 pm
Hello
I'm not very good on regular expressions but someone has given me one that works in a software called X Bench
<([[:digit:][:letter:]]+_)+[[:digit:][:letter:]]+>
It should find reference numbers like
ABC_123_DEFG-4567
etc of any length
The problem is that when I try to run it in TC (which I'm not really familiar with either), the search only takes a few seconds (instead of a few hours) on a txt file which is VERY big and there are 0 founds (there are just over 121,000 in Xbench)
The reason I can't use x bench is that it doesn't have an extract function and I need my founds to be extracted to a txt file
I've tried testing the expression in TC's tester but that doesn't seem to work either for me
This might be no problem with the regex but that I'm using TC wrongly (I've indicated the path and put the expression in the box and asked it to 'extract'
Can anyone help please
Thanks in advance
I'm not very good on regular expressions but someone has given me one that works in a software called X Bench
<([[:digit:][:letter:]]+_)+[[:digit:][:letter:]]+>
It should find reference numbers like
ABC_123_DEFG-4567
etc of any length
The problem is that when I try to run it in TC (which I'm not really familiar with either), the search only takes a few seconds (instead of a few hours) on a txt file which is VERY big and there are 0 founds (there are just over 121,000 in Xbench)
The reason I can't use x bench is that it doesn't have an extract function and I need my founds to be extracted to a txt file
I've tried testing the expression in TC's tester but that doesn't seem to work either for me
This might be no problem with the regex but that I'm using TC wrongly (I've indicated the path and put the expression in the box and asked it to 'extract'
Can anyone help please
Thanks in advance