catch.jp-wiki
¥×¥í¥°¥é¥ß¥ó¥°
±Ñ¸ì³Ø½¬
ÍúÎò
¸¡º÷
Dropdown
ÊÔ½¸
źÉÕ
°ìÍ÷
RegularExpression
RegularExpression
¤ÎÊÔ½¸
https://www.catch.jp:443/wiki/editedit.php?RegularExpression
-- ¿÷·Á¤È¤¹¤ë¥Ú¡¼¥¸ --
ASP.net
AppleScript
BSD-MIT¥é¥¤¥»¥ó¥¹Èæ³Óɽ
Blockly/CustomBlock
Blockly/Documents
Blockly/Toolbox_WorkSpace
Blockly/Tutorial
Bookmarklet¤Îºî¤êÊý
BracketName
Build_Blockly-Games_Win
CSS_Framework
Chrome
CodingSkill
Desktop Movie
Desktop Movie Mac
Education_and_Programing
Education_and_Programing_toools
English/English-NReading
English/English-News
English/English-Word
Firebug
Firefox OS
FormattingRules
Free_Open_Document
FrontPage
Git_Github
Git_Github/Git_Githubhub for Windows
Git_Github/TortoiseGit_Github
Github_pages
Google_Closure_Tools
Google_code
HTML5+JavaScript
Help
History
Inkscape Function-Plot
Inno-setup
InterWiki
InterWikiName
InterWikiSandBox
JavaScript¥á¥â
Light weight Desktop
Linux_Desktop_Select
MDwiki
MenuBar
MenuBar2
NIHONGO_Programing
Nadeshiko_programming4JapaneseStyle
OSI_History
OpenOffice.org/Impress_template
PHP
PaintShopPro
PanDoc
ParserGenerator
Phaser
PowerPoint¤Ç¥¹¥¯¥ê¡¼¥ó¥»¡¼¥Ð¡¼
Processing.js´ðÁúÇ®ÆþÌç
Processing¤Ç¥µ¥¦¥ó¥É
Processing´ðÁúÇ®ÆþÌç
Programing
Programing/Blockly2014
Programing/Blockly2017
Programing/LibreLogo
Programing/MIT App Inventor2
Programing/scratch
Project_Management_tools
PukiWiki
PukiWiki/1.4
PukiWiki/1.4/Manual
PukiWiki/1.4/Manual/Plugin
PukiWiki/1.4/Manual/Plugin/A-D
PukiWiki/1.4/Manual/Plugin/E-G
PukiWiki/1.4/Manual/Plugin/H-K
PukiWiki/1.4/Manual/Plugin/L-N
PukiWiki/1.4/Manual/Plugin/O-R
PukiWiki/1.4/Manual/Plugin/S-U
PukiWiki/1.4/Manual/Plugin/V-Z
ReVIEW
RecentDeleted
RegularExpression
SSH
SandBox
Selenium
Sociology_psychology
SoftwareTest
SoraMame.Block
SoraMame.ps.js
SoraMame.ps.js/Reference
SoraMame.ps.js/Samples
SoraMame.ps.js/Syntax_Style
SoraMame.ps.js/ÆþÌç
SoraMame.ps.js/ÆþÌç/Casestudy
SoraMame.ps.js/ÆþÌç/Glossary
SoraMame.ps.js/ÆþÌç/Practice
SoraMame.ps.js/ÆþÌç/introduction
SoraMame.ps.js/ÆþÌç/object
SoraMame.ps.js/ÆþÌç/part.1
SoraMame.ps.js/ÆþÌç/part.2
SoraMame.ps.js/ÆþÌç/part.3
SoraMame.ps.js/ÆþÌç/part.4
SoraMame.ps.js/ÆþÌç/reason
Test
TortoiseSVN
Web Platform Installer
Web_Design
Web_services
Webforms
WikiEngines
WikiName
WikiWikiWeb
Windows ¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È
Windows+Mac-mini+WiFi
Windows¥æ¡¼¥¶¡¼¤Î¤¿¤á¤ÎEmacsÆþÌç2
Windows¥æ¡¼¥¶¡¼¤Î¤¿¤á¤ÎViÆþÌç
YukiWiki
aoi
aoi_hi-school_maker
archive
atom
basic_of_SoftwareLicense
corporate_philosophy
easyModal.js
educational_programing
enchant.js
english
english/800_Basic_English
english/Ankidroid
excel
framin
gimp
gmail
good_skill
https
iGoogle
ideas
infographics
inkscape
javaja22
javascript_file
keymacro4Mac
kotsubaki-wiki
make_for_Windows
making_script01
making_script02
making_script03
making_wiki
markdown
mediawiki
memo_word
memories
mozilla/docfest
nadeshiko_cgi
nadesiko_hi-school_maker
nadesiko_password
node.js
opensource_like
p5.js
p5.play.js
phaser/original_01
phaser/tutorial_01
phaser/tutorial_02
phpmyadmin
programer_training
proof
pukiwiki
scheme
search
story_telling
suzuka
thesaurus
trademark_patent
tsubaki-wiki
tsubaki-wiki-installer
tutorial_1
tutorial_2
tutorial_3
tutorial_4
vbs
voice
web_programing
windows_apache
windows_hosting_service
windows_http
windows_iis
windows_rails
windows_xampp
windows_xp_end
wordpress
writing
xampp
xoops
xyzzy
xyzzy/key_map
xyzzy_reference
¤Ê¤Ç¤·¤³
¤Ê¤Ç¤·¤³RegularExpression
¤Ê¤Ç¤·¤³Wiki(²¾)
¤Ê¤Ç¤·¤³¤ÇCGI_IIS
¤Ê¤Ç¤·¤³Ã±ÂΥƥ¹¥È
¥ª¡¼¥×¥ó¥½...C¥¹¤ÎÎò»Ë
¥ª¡¼¥×¥ó¥½¡¼¥¹¤ÎÎò»Ë
¾®Çþ¤Í¤ó¤É
ÅŻҽÐÈÇ¡¿ÅŻҽñÀÒ
ʸ¾Ïɽ¸½¾å¡¢¤È¤Æ¤â´ðËÜŪ¤Ê¥Æ¥¯¥Ë¥Ã¥¯
1
2
3
4
1111
¥×¥í¥°¥é¥à¤Ê¤É¤Ç¥Æ¥¥¹¥È¸¡º÷¤ò°·¤¦Àµµ¬É½¸½(Regular Expression)¤Ë´Ø¤¹¤ë¥á¥â #contents *ÆþÌç [#ibaf9309] -[[¥µ¥ë¤Ë¤â¤ï¤«¤ëÀµµ¬É½¸½ÆþÌç:http://www.mnet.ne.jp/~nakama/]] -[[¼ê¤òÆ°¤«¤·¤Ê¤¬¤é³Ð¤¨¤ëÀµµ¬É½¸½¡ã´ðÁÃÆþÌçÊÔ¡ä:http://books.ivory.ne.jp/regexp/]] *´ðËÜ [#t06dc586] -[[Àµµ¬É½¸½¥µ¥ó¥×¥ë½¸:http://hodade.adam.ne.jp/seiki/]] -[[Àµµ¬É½¸½¤Ç»È¤¦¥á¥¿¥¥ã¥é¥¯¥¿¡¢¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¡¡¡ã¡¡Àµµ¬É½¸½¡¡¡ã¡¡½¨´Ý¤Á¤Þ¡Á¤ë:http://crocro.com/pc/write/hide/chimarl09_01.html]] *¥ê¥Õ¥¡¥ì¥ó¥¹ [#z9bc80e4] -[[Àµµ¬É½¸½¥ê¥Õ¥¡¥ì¥ó¥¹ - ͸²ñ¼Ò¥¦¥§¥Ö¥¹¥ß¥¹:http://www.websmith.co.jp/tools/regularexpressions.php]] -[[¼ê¤òÆ°¤«¤·¤Ê¤¬¤é³Ð¤¨¤ëÀµµ¬É½¸½¡ã¥ê¥Õ¥¡¥ì¥ó¥¹¡ä:http://books.ivory.ne.jp/regexp/reference.html]] -[[Àµµ¬É½¸½µ¡Ç½Ê̵հú¤¥ê¥Õ¥¡¥ì¥ó¥¹:http://a7m.sakura.ne.jp/Regex.html]] *¥Ä¡¼¥ë [#sf0b6635] -[[Rubular: a Ruby regular expression editor and tester:http://www.rubular.com/]] -[[¥Ö¥é¥¦¥¶¤ÇÀµµ¬É½¸½¤Î¥Á¥§¥Ã¥¯¤Ê¤É¤¬¤Ç¤¤ë¥µ¥¤¥È¤Þ¤È¤á | IDEA*IDEA:http://www.ideaxidea.com/archives/2008/12/post_964.html]] *Javascript¤ÇÀµµ¬É½¸½ [#s8faf9d9] -[[JavaScript ¤ÎÀµµ¬É½¸½:http://homepage2.nifty.com/magicant/sjavascript/regexp-syntax.html]] ¥¨¥¹¥±¡¼¥×¤ÎÀâÌÀ¤â¤¢¤ê -[[Javascript/Àµµ¬É½¸½ - ²¶¤Î´ðÃÏ:http://yakinikunotare.boo.jp/orebase/index.php?Javascript%2F%C0%B5%B5%AC%C9%BD%B8%BD]] -[[Javascript/ʸ»úÎóÁàºî - ²¶¤Î´ðÃÏ:http://yakinikunotare.boo.jp/orebase/index.php?Javascript%2F%CA%B8%BB%FA%CE%F3%C1%E0%BA%EE#icb5c543]] -[[JavaScript¤ÇÀµµ¬É½¸½¤ò»È¤¦ - JavaScript TIPS¤Õ¤¡¤¯¤È¤ê¡¼:http://www.nishishi.com/javascript/2008/regular-expression.html]] -[[¤½¤Î¤Þ¤Þ»È¤¨¤ëÀµµ¬É½¸½½¸ for regExp (javascript) | ÁǿͤȤ¤É¤¸¼¿Í:http://befine.jugem.jp/?eid=29]] -[[¤È¤Û¤Û¤ÎÀµµ¬É½¸½¡ÊRegExp¡Ë:http://www.tohoho-web.com/js/regexp.htm]] -[[¤È¤Û¤Û¤Îʸ»úÎó¡ÊString¡Ë:http://www.tohoho-web.com/js/string.htm#search]] -[[JavaScript¹ÖºÂ¡¡15¾Ï¡¡JavaScript¤Ç¤ÎÀµµ¬É½¸½:http://www.site-cooler.com/kwl/javascript/15.htm]] match¥á¥½¥Ã¥É¤Ç¡¢Ê¸»úÎ󤫤éÀµµ¬É½¸½¤ÇÆÃÄê¤Î¥Ñ¥¿¡¼¥ó¤Ë¹çÃפ¹¤ëʸ»úÎó¤ò¼è¤ê½Ð¤»¤ë¡£ ¼è¤ê½Ð¤·¤¿Ê¸»úÎó¤Ï¡¢String¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤Ï¤Ê¤¯¡¢ÇÛÎ󡪡£ °Ê²¼¤Ï¡¢Á´¤Æ¥°¥í¡¼¥Ð¥ë¥¹¥¤¥Ã¥Á̵¤Î¾ì¹ç¡£ var test = "abcd_efg 123 xyz"; var res = test.match( /^\w+/ ); if (res != null) { alert(res); //¥Þ¥Ã¥Á¤·¤¿Ê¸»úÎó alert(res.length); //ʸ»úÎó¤Î¥Þ¥Ã¥Á¤·¤¿¸Ä¿ô(¥°¥í¡¼¥Ð¥ë¥¹¥¤¥Ã¥Á̵¤À¤È1¸Ä) alert(res[0].length); //¥Þ¥Ã¥Á¤·¤¿Ê¸»úÎó¤ÎŤµ alert(test.substr(res[0].length)); //(ºÇ½é¤Ë¥Þ¥Ã¥Á¤·¤¿Éôʬ¤Î»Ä¤ê) } *¤Ê¤Ç¤·¤³¤ÇÀµµ¬É½¸½ [#l64681e2] -[[¤Ê¤Ç¤·¤³RegularExpression]]
¥¿¥¤¥à¥¹¥¿¥ó¥×¤òÊѹ¹¤·¤Ê¤¤
¥×¥í¥°¥é¥à¤Ê¤É¤Ç¥Æ¥¥¹¥È¸¡º÷¤ò°·¤¦Àµµ¬É½¸½(Regular Expression)¤Ë´Ø¤¹¤ë¥á¥â #contents *ÆþÌç [#ibaf9309] -[[¥µ¥ë¤Ë¤â¤ï¤«¤ëÀµµ¬É½¸½ÆþÌç:http://www.mnet.ne.jp/~nakama/]] -[[¼ê¤òÆ°¤«¤·¤Ê¤¬¤é³Ð¤¨¤ëÀµµ¬É½¸½¡ã´ðÁÃÆþÌçÊÔ¡ä:http://books.ivory.ne.jp/regexp/]] *´ðËÜ [#t06dc586] -[[Àµµ¬É½¸½¥µ¥ó¥×¥ë½¸:http://hodade.adam.ne.jp/seiki/]] -[[Àµµ¬É½¸½¤Ç»È¤¦¥á¥¿¥¥ã¥é¥¯¥¿¡¢¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¡¡¡ã¡¡Àµµ¬É½¸½¡¡¡ã¡¡½¨´Ý¤Á¤Þ¡Á¤ë:http://crocro.com/pc/write/hide/chimarl09_01.html]] *¥ê¥Õ¥¡¥ì¥ó¥¹ [#z9bc80e4] -[[Àµµ¬É½¸½¥ê¥Õ¥¡¥ì¥ó¥¹ - ͸²ñ¼Ò¥¦¥§¥Ö¥¹¥ß¥¹:http://www.websmith.co.jp/tools/regularexpressions.php]] -[[¼ê¤òÆ°¤«¤·¤Ê¤¬¤é³Ð¤¨¤ëÀµµ¬É½¸½¡ã¥ê¥Õ¥¡¥ì¥ó¥¹¡ä:http://books.ivory.ne.jp/regexp/reference.html]] -[[Àµµ¬É½¸½µ¡Ç½Ê̵հú¤¥ê¥Õ¥¡¥ì¥ó¥¹:http://a7m.sakura.ne.jp/Regex.html]] *¥Ä¡¼¥ë [#sf0b6635] -[[Rubular: a Ruby regular expression editor and tester:http://www.rubular.com/]] -[[¥Ö¥é¥¦¥¶¤ÇÀµµ¬É½¸½¤Î¥Á¥§¥Ã¥¯¤Ê¤É¤¬¤Ç¤¤ë¥µ¥¤¥È¤Þ¤È¤á | IDEA*IDEA:http://www.ideaxidea.com/archives/2008/12/post_964.html]] *Javascript¤ÇÀµµ¬É½¸½ [#s8faf9d9] -[[JavaScript ¤ÎÀµµ¬É½¸½:http://homepage2.nifty.com/magicant/sjavascript/regexp-syntax.html]] ¥¨¥¹¥±¡¼¥×¤ÎÀâÌÀ¤â¤¢¤ê -[[Javascript/Àµµ¬É½¸½ - ²¶¤Î´ðÃÏ:http://yakinikunotare.boo.jp/orebase/index.php?Javascript%2F%C0%B5%B5%AC%C9%BD%B8%BD]] -[[Javascript/ʸ»úÎóÁàºî - ²¶¤Î´ðÃÏ:http://yakinikunotare.boo.jp/orebase/index.php?Javascript%2F%CA%B8%BB%FA%CE%F3%C1%E0%BA%EE#icb5c543]] -[[JavaScript¤ÇÀµµ¬É½¸½¤ò»È¤¦ - JavaScript TIPS¤Õ¤¡¤¯¤È¤ê¡¼:http://www.nishishi.com/javascript/2008/regular-expression.html]] -[[¤½¤Î¤Þ¤Þ»È¤¨¤ëÀµµ¬É½¸½½¸ for regExp (javascript) | ÁǿͤȤ¤É¤¸¼¿Í:http://befine.jugem.jp/?eid=29]] -[[¤È¤Û¤Û¤ÎÀµµ¬É½¸½¡ÊRegExp¡Ë:http://www.tohoho-web.com/js/regexp.htm]] -[[¤È¤Û¤Û¤Îʸ»úÎó¡ÊString¡Ë:http://www.tohoho-web.com/js/string.htm#search]] -[[JavaScript¹ÖºÂ¡¡15¾Ï¡¡JavaScript¤Ç¤ÎÀµµ¬É½¸½:http://www.site-cooler.com/kwl/javascript/15.htm]] match¥á¥½¥Ã¥É¤Ç¡¢Ê¸»úÎ󤫤éÀµµ¬É½¸½¤ÇÆÃÄê¤Î¥Ñ¥¿¡¼¥ó¤Ë¹çÃפ¹¤ëʸ»úÎó¤ò¼è¤ê½Ð¤»¤ë¡£ ¼è¤ê½Ð¤·¤¿Ê¸»úÎó¤Ï¡¢String¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤Ï¤Ê¤¯¡¢ÇÛÎ󡪡£ °Ê²¼¤Ï¡¢Á´¤Æ¥°¥í¡¼¥Ð¥ë¥¹¥¤¥Ã¥Á̵¤Î¾ì¹ç¡£ var test = "abcd_efg 123 xyz"; var res = test.match( /^\w+/ ); if (res != null) { alert(res); //¥Þ¥Ã¥Á¤·¤¿Ê¸»úÎó alert(res.length); //ʸ»úÎó¤Î¥Þ¥Ã¥Á¤·¤¿¸Ä¿ô(¥°¥í¡¼¥Ð¥ë¥¹¥¤¥Ã¥Á̵¤À¤È1¸Ä) alert(res[0].length); //¥Þ¥Ã¥Á¤·¤¿Ê¸»úÎó¤ÎŤµ alert(test.substr(res[0].length)); //(ºÇ½é¤Ë¥Þ¥Ã¥Á¤·¤¿Éôʬ¤Î»Ä¤ê) } *¤Ê¤Ç¤·¤³¤ÇÀµµ¬É½¸½ [#l64681e2] -[[¤Ê¤Ç¤·¤³RegularExpression]]
¥Æ¥¥¹¥ÈÀ°·Á¤Î¥ë¡¼¥ë¤òɽ¼¨¤¹¤ë