Find Jobs
Hire Freelancers

BBCode Image preg_replace

£10-20 GBP

クローズ
投稿日: 約10年前

£10-20 GBP

完了時にお支払い
Comments on my site are in BBCode (example: [b]text[/b]), which is converted to HTML. The preg_replace I use for images needs adjusting. Currently it changes [img][login to view URL][/img] to <img src="[login to view URL]" /> . I need the preg_replace to check the image BBCode has a valid image file type (.jpg, .png, .gif, .jpeg). Here is the current PHP code: [login to view URL]
プロジェクト ID: 5570248

プロジェクトについて

12個の提案
リモートプロジェクト
アクティブ 10年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
この仕事に12人のフリーランサーが、平均£19 GBPで入札しています
ユーザーアバター
I am an expert in PHP and willing to deliver the project to your specifications and needs .
£19 GBP 1日以内
4.8 (97 レビュー)
7.1
7.1
ユーザーアバター
Hi, i can do this right now and done it fast, exactly what you want. Please hire me now. Thank you ! .
£20 GBP 1日以内
4.9 (246 レビュー)
6.2
6.2
ユーザーアバター
Hi! So just the valid images (files with the extensions you've enumerated) must be touched by that replace. OK. Your regexp is pretty complicated. Still, it can be worked on it. But: would you also like a clearer version of it? If so, just tell me what restrictions related to these image files YOU want to be imposed. For instance this: (?:\s|\;|\)|\]|\[|\{|\}|,|\"|'|\<|$|\.\s) can be written in a more clearer way. But it that part needed? So what exactly you want to check the regexp? (not only the extension) Thanks, Anca
£23 GBP 2日以内
5.0 (107 レビュー)
5.2
5.2
ユーザーアバター
We will have to divide code into two parts. First part extracts file type and compares it to valid options, and second part that does what your current code does. S.
£23 GBP 1日以内
5.0 (4 レビュー)
5.2
5.2
ユーザーアバター
Hello There I think i can help you out to achieve this stuff. However needs to consult with u once .. Hoping for ur positive reply thanks
£18 GBP 1日以内
5.0 (9 レビュー)
4.0
4.0
ユーザーアバター
A proposal has not yet been provided
£19 GBP 3日以内
5.0 (2 レビュー)
3.0
3.0
ユーザーアバター
Hi, I am a recent graduate with a degree in Computer Science. You'd just like the regex augmented to only replace img tags that contain a valid image type? I can have this for you tomorrow afternoon. If you have any further questions please don't hesitate to contact me, Tally
£15 GBP 1日以内
4.9 (3 レビュー)
2.1
2.1
ユーザーアバター
A proposal has not yet been provided
£18 GBP 1日以内
5.0 (1 レビュー)
0.4
0.4
ユーザーアバター
Brother, I am currently working on phpBB. I am experienced on BBcode, smilies, posting etc. To see my projects please see my profile. Before this code you use, I have to write a program that will extract the file extension. It is very simple. The string after last dot is extension. Then if else check for known file type. It is very easy to me. I can do this within 1 day. You can award me. Also before awarding you can PM me for more details. Thank you brother...........
£16 GBP 1日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

UNITED KINGDOMのフラグ
Gresham, United Kingdom
4.7
14
お支払い方法確認済み
メンバー登録日:3月 16, 2011

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。