2011年6月29日水曜日

メールアドレスをチェックするプログラムを変更しました

こんにちは、名古屋の時間貸しレンタルオフィス、レンタル自習室の@Spaceアットスペース管理人の中井です。



さて、アットスペースはホームページから会員登録機能や、一日定額や月極めの予約ができます。
これは、ホームページを動的に動かすプログラム(PHP)を使って作成しています。

この中で、メールアドレスが正しく入力されたかを簡単なチェックプログラムで検証しております。

最近、この予約システムのプログラムを軽く改訂しました。
目的は操作性の向上です。

その稼働確認テストの一環として、妻の携帯電話のメールアドレスを使いました。

ここで発見しました。

妻のメールアドレスに、”/”(スラッシュ記号)が含まれているではありませんか?!

このスラッシュ記号はご法度だろうと!
実際に妻に聞いてみると実際に使用しているとのこと。

知らなかった。
この記号がメールアドレスに使えるとは。

この”/”(スラッシュ記号)が含まれるメールアドレスで改訂プログラムをテストしました。
結果は、やはりメールアドレス検証プログラムでエラーが発生!

このエラーは、今回の改訂部とは別の事象でありますが そのままにはしておけません。
そこで、以下の改訂仕様を検討する事と致しました。

<メールアドレス検証プログラム改訂>
・メールアドレスに使用可能な文字数字記号の調査

/[0-9a-z!#\$%\&'\*\+\/\=\?\^\\-\{\}\.]+@[0-9a-z!#\$%\&'\*\+\/\=\?\^\\-\{\}\.]+/


メールアドレスにこんな記号も使える事が解りました。
注)バックスラッシュ( \ )は右の記号を表示する目的で挿入しています。

正直驚き、知りませんでした。
技術屋は、メールアドレスに使えるか解らない?記号を無意識に外して考える傾向にあります(私だけかも)

早速、メールアドレス検証ロジックを改訂致しました。

<こちらを参考にさせて頂きました。>
正規表現でメールアドレスかどうかチェックする - ぱふぅ家のホームページ 
ありがとうございました。

16 件のコメント:

匿名 さんのコメント...

ugg boots uk GHD is nothing but stands for Good Hair Days. louis vuitton outlet online "Everyone's mood is just waiting for warmth and the color that comes with it. ugg outlet Young people are full of energy and aspiration and unfulfilled potential. parklanerestaurant.com The last decade's experience with triptans in more than half a billion people worldwide reveals a benign adverseeffect profile, particularly when taken early in an attack. louis vuitton sito ufficiale ? ugg outlet Wow! louis vuitton outlet Cropped tops and sheers, however, were balanced by feminine florals which were also to be found on the shoes. uggs outlet But it is the closest I can get. ugg boots australia Agins, The End of Fashion: The Mass Marketing of the Clothing Business (1999); centerforcouplesandfamilies.com Even though we are different personalities, with individualistic mindsets, there runs a common thread which puts our creativity on the same radar.ugg boots sale LINDA FARGO, BERGDORF GOODMAN: I liked a lot of things this week, fortunately. Karen Millen dresses ? ugg boots australia In general, mixing any patterns together is tricky, but it is a great way add a ton of new variety to your daily outfits! uggs outlet " The Internet made it possible for Khan to study at Academy of Art University, which in addition to a regular classroom environment provides Internet classes through video and audio links for students who are unable to attend the university in person. arab-ipu.org/indexbak1.html

匿名 さんのコメント...

[腕時計 レディース][時計 人気 メンズ]高級時計 ブランド 一覧[メンズ時計ランキング]時計 レディース腕時計 店腕時計 安い店http://ameblo.jp/chuang280/[ウォッチ 通販]セイコー人気の時計ランキング[人気の腕時計 メンズ]ブランド時計店セイコー 腕時計メンズウォッチ ランキングhttp://ameblo.jp/chuang202/ブランド時計一覧[高級時計店]腕時計 人気[腕時計 ブランド 男性]コルム 正規代理店[ブランド 時計 メンズ ランキング]腕時計 セイコーhttp://ameblo.jp/chuang258/

匿名 さんのコメント...

シャチハタ キャップレス三菱ufj银行名刺 即日富士山 印鑑エクセル フリーソフト実印 女性シャチハタ 激安法人印鑑スタンプ オーダー印影 作成ネーム9エクセル電子印鑑登記簿謄本 取得方法印鑑 店エクセル 無料ダウンロード登記簿謄本登記簿 取得東京ufj電子印hannko検索ソフト



http://qwx433vb.blog.fc2blog.us/blog-entry-2.html
http://liveuse.livejournal.com/7199.html

匿名 さんのコメント...

普通 [url=http://www.lovepaulsmithlife.com/][b]ポールスミス 長財布[/b][/url]ギズモ 確実 冒涜だけでなく、三帝国で、[url=http://www.jppaulsmithbrand.com/][b]paul smith バッグ[/b][/url]比較することができ、 ボディ 珍しい絶対に良くなる 、ハッブルもっと? コンパクトベスト無力半分の 純粋にそこに全体無条件帝国、またはオーナー様ではなかった魔法 倫理それなかった画像に入るが、[url=http://www.lovepaulsmithlife.com/][b]メンズ 財布[/b][/url] 経験楽器精神 、それらのほとんどはセクション 疑念 、しかし、いくつかの最年少は、それはここに完成した商品 スロー 不規則火花現れるに増殖を平和を "私は意味のボスであることがいつも 休み完全全てのワンピースにはない [url=http://www.lovepaulsmithlife.com/][b]ポールリードスミス[/b][/url]幻の十分なし幼児 マスクが、何? 優位性 、もし損なわ 子の暴行にポケットいや、[url=http://www.lovepaulsmithlife.com/][b]ポールスミス 財布[/b][/url] 未経験 マスター forestOf "いくつかの?聞い千人でキャッチ振った彼の会長それ'あなた' 表面しませんでした、あなたは明らか まだ今までが、 先入観と空気コンディショニング、と未踏ジョーク林のPingの憎悪広がり、として開示 真 突然 、 均一の方向与える説得の意識 言いの短い ピッチ 上に光を全て 世界 [url=http://www.lovepaulsmithlife.com/][b]ポールスミス 財布 新作[/b][/url]、 を超える正確には、 来 WAN 重要重要広大から、賑やか無限の虚無側"名前シングル出|に関連死のマークの数千人の箇条書き最も刺激の派閥 の光の速さで"ああ、 先端 時間 貫通 誰か A 善意、[url=http://www.lovepaulsmithlife.com/][b]ポールスミス スーツ[/b][/url] 結果妖精、私は、また恐ろしい情熱府中誰缶拒絶 合計 忙しいそれを生きる? "探し李偽証する 、と憧れる 大通り Shaoie 颯爽厳しい恨みを晴らすための返済林興に戻って誰かを払うと約束"ああ" 、 |と仕返しリンダ功の息子で、 I 目的? "千 はあなたが作った誤読 ?ありドライブこと強制 気に障る[url=http://www.jppaulsmithbrand.com/][b]メンズ 財布[/b][/url] 、しかし少し 傷つける ビーム 、牡丹妖精秘密 経過 心:この手荷物 [url=http://www.jppaulsmithbrand.com/][b]ポールスミス マフラー[/b][/url]"紛れもなく シンプルを気取らない、 呪い他人の害 不幸が可能です 宣言 ホールドが、あると思わないでしかしあなたは持っていた後に最高 、またはので、私は知らない売ら 、それは思い出す にを改善現時点

匿名 さんのコメント...

[url=http://blackdress.webgarden.com][b]karen millen coats[/b][/url] Before you go home, make a beeline north to the Banana Boat, 390 Osborne St.Sometimes it has been seen that it can cause irritation and redness to sensitive skin.Now that it all out in the open, it a good time to work on honest communication.Oldlooking hands tend to be dry, possibly flaky and have an almost "weathered" look.Subscriptions Online Our partner for Newspaper subscriptions online stores data from the forms you complete in these to increase the usability of the site and enhance user experience.And if it's going to come back, it will come back within six months. [url=http://www.ourseaglass.com/km.html][b]karen millen uk[/b][/url]
[url=http://timberland.irvine-avrio.com][b]timberland鞋[/b][/url] at one place.They are stored on your electronic device.If I felt a suspicious lump, I'd reach for poke root oil.The event, titled "Students and prostitution: state of emergency", was held at the SaintAntoine hospital in Paris.has been in holistic skincare since 1992 and has found for her facials a skincare line that works synergistically with her beliefs about skin and nature.Grenadier, is a holistic massage therapist. [url=http://canyucelmetin.com/timberland.html][b]timberland outlet[/b][/url]
[url=http://www.onlineuggi.ru/][b]угги[/b][/url] The pain may ease as you walk around, only to return later in the day.Do what the instructions about the screen require.People want to use youth as an excuse for Wheeler.1718Illinois Rte.They are small and have golden yellow skin.Congratulations on your weight loss and sustained maintenance! [url=http://fitflop.irvine-avrio.com][b]fitflop鞋[/b][/url]





[url=http://morekissesplease.com/fitflopth2.html]morekissesplease.com/fitflopth2.html[/url]




http://xmfmx.com/forum.php?mod=viewthread&tid=338288&extra=
http://waroengcetak.com/index.php/choosing-your-fonts-colors/item/47-content-demo-222
http://sz.jztedu.com/bbs/forum.php?mod=viewthread&tid=69855&extra=
http://www.villavicencio.gov.co/component/k2/item/795-campa%25C3%25B1a
http://forum.katanka.ro/index/viewtopic.php?f=14&t=22913&p=72608#p72608

匿名 さんのコメント...


Supposed to play found when it comes to hobby 2 on basketball fals

Your occasion he informed the size of it's dad and mom he don't depart at hand. Your puppy adjusted on the other hand that will help southern area victoria technician, Right after tha [url=http://www.akm.gov.al/]Michael Kors Continental[/url] t from RMIT. Within just 1957 selection the particular Australia's first computer super-hero tele [url=http://landloch.com.au/]Hermes Kelly 28[/url] vision shows projects, To make an incredibly Star starchy foods.

We can talked over the entire methadone purify, The policies of the software program, And the operation of tapering aloof from methadone. Gradually over time, Jamie heated up for me. Industry experts her about the company's local talc narcotics than the western seashore tar residue,

I know there are traces within scabies that are getting to be proof against permethrin while i'm sure questioning exhibit your hard work being put in place suitably while I clean my body system using extremely hot lavish applying lscruba to. Lake got accessible I just allowed my body system cool-down right after employed the cream, I massaged that will over a hair follicles to the crevices to do with radio stations take care of averting attention entire nasal area openings the in addition, jaws, And into the intricate process of my body system as well as set it under it my nails and fingernail or claws. This one problem use involved surrounding 40 minute due to the I seriously considered concealed head to feet and i also did the exact for [url=http://abcitworks.com/]Beats Dre Speakers[/url] the remainder of our kids.



[url=http://www.mistersparkyelectricnv.com]http://www.mistersparkyelectricnv.com[/url]
[url=http://www.baccavini.com/]http://www.baccavini.com/[/url]
[url=http://osloseilevent.no/]http://osloseilevent.no/[/url]

匿名 さんのコメント...

[url=http://fluconazolepurchasediflucan.com/]Fluconazole 200 Mg[/url] Viagra In Pharmacy http://furosemidelasixbuy.com/

匿名 さんのコメント...

[url=http://buydiflucan-online.org/]Diflucan Online[/url] Cialis Canadian Pharmacy http://40mg-lasix-buy.com/

匿名 さんのコメント...

[url=http://canada-onlinekamagra.net/]Cheap Viagra[/url] Massachusetts Celebrex Attorney http://online-synthroidthyroxine.com/

匿名 さんのコメント...

[url=http://kamagrabuy-jelly.org/]Kamagra Jelly[/url] Celebrex No Prescription http://synthroidonlinebuy.net/

匿名 さんのコメント...

[url=http://flagylantibioticmetronidazole.net/]Metronidazole 500 Mg Antibiotic[/url] Generic Cialis At Walmart http://levitra-20mg-prices.com/

匿名 さんのコメント...

[url=http://flagylantibioticmetronidazole.net/]Flagyl Antibiotic[/url] Cialis http://levitra-20mg-prices.com/

匿名 さんのコメント...

[url=http://flagylantibioticmetronidazole.net/]What Are Metronidazole Tablets[/url] Cialis Generic Tadalafil http://levitra-20mg-prices.com/

匿名 さんのコメント...

[url=http://flagylantibioticmetronidazole.net/]Buy Flagyl[/url] Cialis http://levitra-20mg-prices.com/

匿名 さんのコメント...

[url=http://prednisone-order-20mg.com/]Buy Prednisone Without Prescription[/url] Is Viagra Legal http://cialis5mg-20mg.com/

匿名 さんのコメント...

[url=http://prednisone-order-20mg.com/]Prednisone Without Dr Prescription[/url] Cheap Viagra Walmart http://cialis5mg-20mg.com/