Jump to content

[SOLVED] Cleaning up


Kingy

Recommended Posts

Well obviously you can see

 

,12|12,6|13,6|6,13|4,13|13,4|7,4|4,7|8,7|7,8|9,8|8,9|10,9|9,10|12,10|10,12|16,12 0,

 

etc etc throughout all the topics and little random ? marks. They are all irc colours etc so is there neway to get rid of them.

 

So instead of having

 

6,12|12,6|13,6|6,13|4,13|13,4|7,4|4,7|8,7|7,8|9,8|8,9|10,9|9,10|12,10|10,12|16,12 0,4 Welcome To YAHTZEE Type !Help For More Info AND HAVE A GAME!! 10,12|12,10|9,10|10,9|8,9|9,8|7,8|8,7|4,7|7,4|13,4|4,13|6,13|13,6|

 

I would just have

 

Welcome to YAHTZEE Type !Help For More Info AND HAVE A GAME

Link to comment
https://forums.phpfreaks.com/topic/76947-solved-cleaning-up/#findComment-389604
Share on other sites

use regex and only take:

Any letter Uppercase or Lower Case

Any Number

`~!@#$%^&*())_<>,.?

 

and then do a regex replace of all things that are not the above pattern with nothing and it should help (make sure you are inclusive on spaces), odds are you can find the pattern online somewhere

 

Link to comment
https://forums.phpfreaks.com/topic/76947-solved-cleaning-up/#findComment-389613
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.