I knew it was me. What a dummy.
Thank you, that worked out perfect.
That was my first attempt to find the first occurrence of a string where it repeated a few times. I was feeling pretty good until I could not get it totally correct. Thank you again.
Search found 8 matches
- Thu Feb 11, 2010 11:53 pm
- Forum: General
- Topic: RegEx has strange result
- Replies: 2
- Views: 404
- Thu Feb 11, 2010 3:15 am
- Forum: General
- Topic: RegEx has strange result
- Replies: 2
- Views: 404
RegEx has strange result
I am using the following Search/Replace strings. I thought it was working OK but found some random lines that were not being picked up. I have provided four groups in two lines from the source file.
<span class="FirstColumnPrompt">District Code:</span></td><td><span class="Value">04</span>
<span ...
<span class="FirstColumnPrompt">District Code:</span></td><td><span class="Value">04</span>
<span ...
- Mon Nov 16, 2009 7:50 pm
- Forum: General
- Topic: locating non-zero values
- Replies: 2
- Views: 478
locating non-zero values
A question for ben_josephs or Bob Hansen:
This is the test string (with spaces):
0 0 0 0 0 0 0 0 0 0 0 0%lf% 0 0 0 0 0 0 0 0 0 0 0 0%lf% 0 0 0 0 0 0 0 0 34 34 34 0 0 0%lf% 0 0 0 0 0 0 0 0 0 0 0 0%lf%
The task is to locate the non-zero values. I am using "_" for space char in Search/Replace strings ...
This is the test string (with spaces):
0 0 0 0 0 0 0 0 0 0 0 0%lf% 0 0 0 0 0 0 0 0 0 0 0 0%lf% 0 0 0 0 0 0 0 0 34 34 34 0 0 0%lf% 0 0 0 0 0 0 0 0 0 0 0 0%lf%
The task is to locate the non-zero values. I am using "_" for space char in Search/Replace strings ...
- Fri Jul 24, 2009 1:04 am
- Forum: General
- Topic: fixed line length
- Replies: 5
- Views: 887
- Thu Jul 23, 2009 10:28 pm
- Forum: General
- Topic: fixed line length
- Replies: 5
- Views: 887
fixed line length
How can I make RegEx insert a \n at the last space char before char 65?
I want to do something like word wrap with some long text paragraphs. So If I want a width of 65 or less, I need to repalce the space with \n.
I can insert \n at position 65, but it sometimes ends up in the middle of a word ...
I want to do something like word wrap with some long text paragraphs. So If I want a width of 65 or less, I need to repalce the space with \n.
I can insert \n at position 65, but it sometimes ends up in the middle of a word ...
- Wed Mar 25, 2009 11:25 pm
- Forum: General
- Topic: multiple delimiters
- Replies: 1
- Views: 397
multiple delimiters
This is a typical sample line showing sometimes a comma/space as delimiter, sometimes in double quotes, not always. Different patterns may change position on each line.
Sample line:
"this is a good piece" "abc" , "5" "66",7
Looking to get these values selected from the line:
1= "this is a good ...
Sample line:
"this is a good piece" "abc" , "5" "66",7
Looking to get these values selected from the line:
1= "this is a good ...
- Thu Mar 12, 2009 10:58 pm
- Forum: General
- Topic: Replace commas within quotes
- Replies: 1
- Views: 355
Replace commas within quotes
Problem:
Cannot parse string with comma delimiters. Plan to temp replace some commas with tildes, parse the result, then replace the original commas.
Need help to replace "internal" commas with tildes, and remove double quotes. Would like to do in one RegEx if possible.
Replace commas within ...
Cannot parse string with comma delimiters. Plan to temp replace some commas with tildes, parse the result, then replace the original commas.
Need help to replace "internal" commas with tildes, and remove double quotes. Would like to do in one RegEx if possible.
Replace commas within ...
- Fri Dec 22, 2006 11:25 pm
- Forum: General
- Topic: Cool new release released..
- Replies: 9
- Views: 3412