Jump to content

[SOLVED] Remove words from String under/over a certain length?


andrewgarn

Recommended Posts

This works:

 

$newpieces = preg_split("/\s+| /", $newoutput);

 

Thanks

 

but i'm still getting duplicate words appear in the output, including "master" which appears 5 times. Its the same all 5 times in the source code.

 

EDIT: fixed that myself, i was making everything lowercase AFTER the if fuction.

 

 

 

 

Last problem is the junk still in the file: :(

 

avxds fdbb2 vqme0 igsbe rgqsl za9f6 qqok1 ccci2 idat1 idatw fdyll qeyv3h tdesdr 98s9er 1fxhi rvuk1f wva8j b2iam p9uk0 jakten ynfe2f

Link to comment
Share on other sites

no i want to know if there is any of methods I can use to remove this:

 

avxds fdbb2 vqme0 igsbe rgqsl za9f6 qqok1 ccci2 idat1 idatw fdyll qeyv3h tdesdr 98s9er 1fxhi rvuk1f wva8j b2iam p9uk0 jakten ynfe2f

 

from the data string. The random garbage letters change for each file.

Link to comment
Share on other sites

no i want to know if there is any of methods I can use to remove this:

 

avxds fdbb2 vqme0 igsbe rgqsl za9f6 qqok1 ccci2 idat1 idatw fdyll qeyv3h tdesdr 98s9er 1fxhi rvuk1f wva8j b2iam p9uk0 jakten ynfe2f

 

from the data string. The random garbage letters change for each file.

 

To my knowledge no.  That would be like having a spell check to get rid of that jibberish.  If I were you, I would mark this topic solved because the title is "Remove words from String under/over a certain length?", and that's solved.  Start a new topic with your current code so people can follow it easier.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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