regular expression
Posted: Wed Feb 14, 2007 3:51 pm
I might be wrong, thinking this is a bug... tried 3.86 and 4.0beta
Can someone help me with regular expressions?
I am translating a subtitle file that looks like this:
1
00:08:35,295 --> 00:08:38,162
Piano, pianissimo...
2
00:08:38,731 --> 00:08:41,393
...senza parlar...
3
00:08:42,101 --> 00:08:43,568
...tutti con me...
4
00:08:45,238 --> 00:08:47,706
...venite qua
In the other window I have my translation of the text lines. I add empty lines in place of the time information. Once I am ready with my translation I want to compare and copy all time information into my translation file.
For that I need a regular expression that skips all text lines, and triggers the compare only on the lines that I here represent like this:
d
dd:dd:dd,ddd --> dd:dd:dd,dd
But how?
I created a rule 'Alphanumeric'
R1 string is ^[\&w ]
Set to ignore strings with match, all the rest empty, but this fails. (By the way, why \&w and not \w?)
To test I created another rule 'digits'
R1 string is ^\d
Set to ignore strings with match, all the rest empty, but it fails.
A bug or my mistake?
Can someone help me with regular expressions?
I am translating a subtitle file that looks like this:
1
00:08:35,295 --> 00:08:38,162
Piano, pianissimo...
2
00:08:38,731 --> 00:08:41,393
...senza parlar...
3
00:08:42,101 --> 00:08:43,568
...tutti con me...
4
00:08:45,238 --> 00:08:47,706
...venite qua
In the other window I have my translation of the text lines. I add empty lines in place of the time information. Once I am ready with my translation I want to compare and copy all time information into my translation file.
For that I need a regular expression that skips all text lines, and triggers the compare only on the lines that I here represent like this:
d
dd:dd:dd,ddd --> dd:dd:dd,dd
But how?
I created a rule 'Alphanumeric'
R1 string is ^[\&w ]
Set to ignore strings with match, all the rest empty, but this fails. (By the way, why \&w and not \w?)
To test I created another rule 'digits'
R1 string is ^\d
Set to ignore strings with match, all the rest empty, but it fails.
A bug or my mistake?