current location:Home > Technical Articles > Web Front-end

  • Real-time chat using Readline and Socket.io for Node.js
    Real-time chat using Readline and Socket.io for Node.js
    Node.js has an underappreciated but extremely useful module in its standard library. The Readline module does what it says on the box: reads a line of input from the terminal. This can be used to ask the user a question or two, or create a prompt at the bottom of the screen. In this tutorial, I plan to demonstrate the capabilities of Readline and make a live CLI chat room powered by Socket.io. Not only can the client send simple messages, but it can also send emoticon commands using /me, send private messages using /msg, and allows the use of /nick. A little about Readline This is probably the simplest use of Readline: varreadline=require('re
    WordPress . regular-expression 1407 2023-08-31 18:09:07
  • Modify your post with a beautiful petition
    Modify your post with a beautiful petition
    WordPress is an excellent multipurpose platform. You can create a website with many different purposes: a company website, a photography showcase, a news portal, a restaurant website with an interactive menu... Oh, and of course a blog. You can blog using WordPress. forgotten. Oddly enough, nonprofits often overlook this flexibility and take advantage of it. In this tutorial, we’ll show you how to create a simple petition script that demonstrates how an organization can benefit from WordPress. What exactly are we building? I'm a big fan of shortcodes (as you can see from my previous posts), so we're going to make a bunch of shortcodes and some useful functions for shortcodes to use. We'll put all of this under one name
    PHP Tutorial . regular-expression 1129 2023-08-31 16:18:01
  • Extract titles from web pages using Python
    Extract titles from web pages using Python
    In Python, we can use web scraping to extract titles from web pages. Web scraping is the process of extracting data from a website or web page. In this article, we will scrap the title of a web page using the Requests and BeautifulSoup libraries in Python. Method 1 for extracting titles from web pages: Using the Request and BeautifulSoup libraries We can use Python's request and BeautifulSoup libraries to extract titles from web pages. The requests library is used to send HTTP requests to websites and get their responses. We then use the response object to extract the HTML content of the web page. Example In the following example, we extract the Wikipedia home page
    Python Tutorial . regular-expression 1126 2023-08-31 12:45:05
  • How to express spaces in regular expressions
    How to express spaces in regular expressions
    Regular expression spaces can be represented by "\s", which is a special metacharacter used to match any whitespace characters, including spaces, tabs, newlines, etc. You can also use "\s+" in regular expressions to represent multiple consecutive space characters, and "\S" to represent other characters except space characters. Proficient in these representation methods, you can better apply regular expressions to character String matching and processing.
    Common Problem . regular-expression 4190 2023-08-31 11:52:56
  • A beginner's guide to regular expressions in JavaScript
    A beginner's guide to regular expressions in JavaScript
    Everyone who uses JavaScript has to deal with strings at some point. Sometimes you just store the string in another variable and pass it around. Other times you have to inspect it and see if it contains a specific substring. However, things are not always easy. Sometimes you are not looking for a specific substring, but rather a set of substrings that follow a specific pattern. Suppose you have to replace all occurrences of "Apples" in a string with "apples". You can simply use theMainString.replace("Apples","apples"). Good and easy. Now suppose you also have to
    WordPress . regular-expression 572 2023-08-30 15:05:05
  • How to search for a pattern in a string in JavaScript?
    How to search for a pattern in a string in JavaScript?
    In this article, we will search for a specific pattern and pass only the strings that match the given pattern. We will use the following method to implement this functionality - Method 1 In this method we will search for the string matching the given pattern and get it from the string. string.search() is a built-in method provided by JavaScript for searching strings. We can also pass a regular expression or a normal string in this method. Syntax str.search(expression) Parameter str - defines the string to be compared. Expression - Defines the string expression that will be compared to the string. This will return the index of the string where the string started matching, or "-1" if the string does not match. Example
    JS Tutorial . regular-expression 1371 2023-08-30 12:13:01
  • Search for tab characters using JavaScript regex
    Search for tab characters using JavaScript regex
    To find tab characters using JavaScript regular expressions, use the following command -\tExample You can try running the following code to find tab characters. It returns the position where the tab (\t) character is found - <html> <head> <title>JavaScriptRegularExpression</title> </head> &nb
    HTML Tutorial . regular-expression 1505 2023-08-30 10:53:18
  • Pattern classes in Java
    Pattern classes in Java
    The Pattern class represents a compiled version of a regular expression pattern. The Pattern class is located in the java.util.regex package. This class has various methods for various operations such as matching, splitting, searching, etc. In order to create a schema object, use the compile method. Syntax publicstaticPatterncompile(Stringregex) where regex represents a regular expression, which is a string. To compile it we use this method. Additionally, this compiled object can be used to match patterns using the Matcher method. Algorithm To compile and match the pattern, follow these steps - Step 1 - Initialize the regular expression with a string
    javaTutorial . regular-expression 635 2023-08-30 09:01:02
  • C# program to get all files present in directory
    C# program to get all files present in directory
    IntroductionOnthecomputer,wecanstorefilesinadirectory,alsoknownasafolder.Adirectoryalsocontainsshortcutstootherdirectoriesandfiles.IfwewanttoknowwhatallfileshavestoredinadirectorythenC#alsooffersaneasywaytodoso.Inthisarticle,wewillbelearningaC#progra
    C#.Net Tutorial . regular-expression 1500 2023-08-29 21:37:06
  • How to get the Nth word in a given string using Python?
    How to get the Nth word in a given string using Python?
    WecangettheNthWordinaGivenStringinPythonusingstringsplitting,regularexpressions,split()method,etc.Manipulatingstringsisacommontaskinprogramming,andextractingspecificwordsfromastringcanbeparticularlyusefulinvariousscenarios.Inthisarticle,wewillexplore
    Python Tutorial . regular-expression 1285 2023-08-29 19:41:03
  • How to remove HTML tags from given string in Java?
    How to remove HTML tags from given string in Java?
    String is a final class in Java, it is immutable, which means we cannot change the object itself, but we can change the reference of the object. HTML tags can be removed from a given string using the replaceAll() method of String class. We can remove HTML tags from a given string using regular expressions. After removing the HTML tags from the string, it returns a string as normal text. Syntax publicStringreplaceAll(Stringregex,Stringreplacement) example publicclassRemoveHTMLTagsTest{&nbs
    javaTutorial . regular-expression 1291 2023-08-29 18:05:06
  • jQuery Lite: Choose jQuery
    jQuery Lite: Choose jQuery
    Custom jQuery filters can select elements when used alone. There is no need to provide the actual element to be used in conjunction with the filter, such as $('div:hidden'). You can simply pass the filter separately wherever a selector expression is required. Some examples: //Selectsallhiddenelements$(':hidden'); //Selectsalldivelements,thenselectsonlyevenelements$('div').filter(':even'); Exploring :hidden and :visible filters Custom jQuery selector filters: hidden and:visib
    JS Tutorial . regular-expression 725 2023-08-29 16:41:10
  • What is string in java
    What is string in java
    String in Java means class, used to represent strings. In Java, a string is a sequence of characters, which can include letters, numbers, symbols, spaces, etc. The string class is a built-in class in Java that provides It has a series of methods to operate on strings and is immutable, which means that once a string object is created, its value cannot be changed. Any operation on the string object will return a new string object without modification. The value of the original object.
    javaTutorial . regular-expression 4451 2023-08-29 14:03:58
  • How to replace newlines using JavaScript?
    How to replace newlines using JavaScript?
    In this tutorial, we will learn how to replace all newlines in JavaScript code using tags. There are multiple ways to replace all newlines using tokens. Some methods are given below - Using StringReplace() method and RegEx In this method we replace all newline characters in plain text with tokens using String.replace() method. RegEx here refers to the regular expression we wrote in the string.replace() method. The following syntax is to use the replace() method-sentence.replace(/(?:\r|\r|)/g,"<br>&quo
    JS Tutorial . regular-expression 1353 2023-08-28 20:33:02
  • Given a string, find the sum of consecutive numbers in it
    Given a string, find the sum of consecutive numbers in it
    Problem StatementWehavegivenstringstrcontainingthenumericandalphabeticalcharacters.Weneedtofindthesumofallnumbersrepresentedbyacontinuoussequenceofdigitsavailableinthegivenstring.Example
    C++ . regular-expression 710 2023-08-28 09:17:14

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28