It's my first post here, so hi all.
Anyway, I am trying to work this out, but can't do this alone. I have a specific line of text, I already replaced it with something more user-friendly using this piece of code:
The result is here: http://p.netserwer.pl/words/
The pattern itself always contains 30 lines that contains words made from 3, 4 or 5 letters. There is always only 1 letter assigned, the ? are wildcards and anything can be placed here. What do I need ? - example:
??D RED
??R? BIRD
??T? BITS
I am trying to assign a word to every line next using the pattern where ??D is any 3-letters word that ends with D etc. I have also made wordlists:
http://p.netserwer.pl/words/3.txt
http://p.netserwer.pl/words/4.txt
http://p.netserwer.pl/words/5.txt
To be honest, I am not a good programmer and have no idea how to make it. Any help or advice will be appreciated.
Anyway, I am trying to work this out, but can't do this alone. I have a specific line of text, I already replaced it with something more user-friendly using this piece of code:
Code:
<?php
$algorytm = ",,D-,,R,-,,T,-,P,,-F,,,¤,P,,-,I,,-,,,F-,,,E¤,,,G-,,T,-,,S,-O,,,-,,E,¤,,,E,-D,,,,-,P,,,-R,,,,-,,N,,¤,,,S,-,,A,,-,,L,,¤,,,,M-,,,A,-,,,S,-,,F,,-,,,B,¤,,,,G-,,,T,-,E,,,";
$algorytm2 = str_replace(",", "?", $algorytm);
$algorytm3 = str_replace("¤", "-", $algorytm2);
$algorytm4 = str_replace("-", "<br>", $algorytm3);
echo $algorytm4;
?>
The pattern itself always contains 30 lines that contains words made from 3, 4 or 5 letters. There is always only 1 letter assigned, the ? are wildcards and anything can be placed here. What do I need ? - example:
??D RED
??R? BIRD
??T? BITS
I am trying to assign a word to every line next using the pattern where ??D is any 3-letters word that ends with D etc. I have also made wordlists:
http://p.netserwer.pl/words/3.txt
http://p.netserwer.pl/words/4.txt
http://p.netserwer.pl/words/5.txt
To be honest, I am not a good programmer and have no idea how to make it. Any help or advice will be appreciated.
Comment