Howdy 🙂
I am developing a function that parses a string and replaces certain matches found within.
All is well, except for one problem which I have not solved, this probably needs more regexp than I know at this stage 🙂
Problem:
Turning strings like "U-47" into a string like "<a href=/b/u47.htm>U-47</a>". There could be several of those in a single string that I'd need to link like that.
I know that any of the "numbers" (here, 47) will have a HTML page ready in the /b folder so if I can parse the thing I can blindly code the URL.
Any ideas? 🙂
Gudmundur Helgason