Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Finding/filtering text in PHP

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #31215

    Hey everyone,

    I don’t know why but I seem to be having a brain freeze at the moment. I’m trying to get a bit of php in our bbCode engine to find where we have for example, check the number and if its below 10 put the number to 10. And doing the same if the number is above 50 (putting the number to 50).

    I cannot seem to think of the most suited way of doing this. Currently we don’t check what the number is and use the following code:

    $Text = preg_replace("([font=(.+?)](.+?)[/font])is","$2",$Text);

    But this is getting annoying for our mods.
    Thanks for any help

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.