Find all the Numbers Using Regular Expression 02/16/2026
This code opens a text file and uses regular expression to find all the number and puts them in a list to get the sum.
Author: Admin
Language:
Python
Tags:
python
open
file
sum
regular
expression
Read More
Use BeautifulSoup in Python to extract links from a web page. 02/16/2026
Use BeautifulSoup in Python to extract all the links by retrieving all the anchor tags from a web page.
Author: Admin
Language:
Python
Tags:
python
beautifulsoup
Read More
How to open a text file in Python 12/28/2025
Here's how to open a text file in Python.
Author: Admin
Language:
Python
Tags:
python
open
file
Read More
MODBUS/TCP Example 12/08/2024
The following example shows how to configure a MODBUS/TCP protocol and read values.
Modbus Serial Example 12/08/2024
The following example shows how to configure a serial Modbus protocol and read values
Author: Admin
Language:
C#
Tags:
modbus
serial
com
Read More
PHP Form Security 01/28/2024
Think SECURITY when processing PHP forms! This shows how to process PHP forms with security in mind. Proper validation of form data is important to protect your form from hackers and spammers!
Author: Admin
Language:
PHP
Tags:
php
security
forms
Read More
Add a new item to an array, it can be inserted with the help of array_splice() a function of PHP. 09/09/2023
This function removes a portion of an array and replaces it with something else. If offset and length are such that nothing is removed, then the elements from the replacement array are inserted in the place specified by the offset.
Author: Admin
Language:
PHP
Tags:
array
php
insert
array_splice
Read More
User-defined functions 07/08/2023
User-defined function are used to preform task in PHP code like saving a user's form input to a database.
If you would like to share your code on HS Codebank you can submit it by registering and clicking the submit article button on this page.
LoginRegisterContact Us