Jump to content

esdaniel

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

esdaniel's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you Discomatt and Effigy... the second response is ideal as it allows me to use str_replace and makes the resulting code much more eloquent/readable in that I don't have to code-around varying array sizes as per discomatt's initial solution i.e. I'm very pleased to have found this forum and hope I can give something back in the near future.
  2. A cry for help... Sample text: The cat sat on the [[straw|mat]]. The cat hoped he would jump through the [[windows]] and catch the [[feathered variety|bird on the branch]]. The regex pattern I'm struggling to put together would match all text between "|" and "]]" or where there is no "|" then all text between "[[" and "]]", as per the text above this regex would then match the following strings: "mat" "windows" "bird on the branch" Allowing me to replace the text between and including [[ and ]] with the strings in the match. Any guidance/help would be greatly appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.