Ask a Question related to PERL Miscellaneous, Design and Development.
-
Steve Hémond #1
Conditionnal occurence modification
Hi,
I post something about that issue earlier : I want to modify a text-file
that looks like this : (assume that * are random characters)
PS1****PW0.50****PW1****PW2.5***PS4*****PW5.5***PS 1***PW4.2***PW2.0***
...and so on.
For each PSx I have to set the PWx's to the same value :
PS1 = PW5.0
PS2 = PW10.0
PS3 = PW15.0
I have to scan the file using this logic :
1. Scan the file until a PSx is found.
2. Scan until the next PWx and replace it to the PSx's correct value.
3. Continue scanning and replacing all PWx's until the next PSx is found.
Actually I can replace the PWx's between the PSx only if there is an even
number of PWx between the PSx.
Any ideas?
Thanks in advance,
Steve
Steve Hémond Guest
-
How to find second occurence of a string?
Hi i am using the find function which will search the first occurence of a string. but how we can find the second or third ...occurence of the... -
Position of String Occurence
Hey guys, I have a string like "lalala: djkahsd : dajkdassd : adasd :" Is there a function to find the position of the "I"th occurence of a... -
conditionnal value list in Find mode
with "use only related value", we can use conditionnal value list in the Browse Mode of FMP 6 How to get them in Find Mode ? -- PM -
Assigning a date display to the first occurence
I'm working on displaying the matchups of NFL teams for a given week, and I need to display weekday abbreviations alongside of the visiting teams'... -
Modification time
Hi all, I know such thing has been posted long time ago (below I will summarize what the answers were at that time), but no real answer. How...



Reply With Quote

