Kev 69 Posted February 19, 2019 Report Share Posted February 19, 2019 Hi all,Wondering if you could help - I am looking to scan a page for any two, thee or four letter words on it that are upper case.For example: ABABCABCD Would appreciate any suggestions on how I would accomplish this.Thanks in advance,Kev Quote Link to post Share on other sites
Code Docta (Nick C.) 639 Posted February 20, 2019 Report Share Posted February 20, 2019 Hey Kev, alert($find regular expression("a BA The Life lives","\b[a-zA-Z]\{3\}\b")) This gets a 3 letter word.Be sure to hit the " button before you close the node! \b[a-zA-Z]{3}\b Change the three to whatever amount of characters, Regards,Nick Quote Link to post Share on other sites
Code Docta (Nick C.) 639 Posted February 20, 2019 Report Share Posted February 20, 2019 alert($Regex Words("a BA The Life lives", 5)) define $Regex Words(#TEXT, #CHARACTERS) { return($find regular expression(#TEXT,"\b[a-zA-Z]\{{#CHARACTERS}\}\b")) } Here is a function so you don't need to worry about the quotes all the time KEV regex words.ubot Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.