473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Match for a word in a text with the PHP script

I have an applications developed with PHP. I have a big text file where I want to match for a word but this can be change in the feature. How can I match a word in PHP?
May 5 '20 #1
2 3696
gits
5,390 Expert Mod 4TB
you can use regular expressions for this task:

PHP PCRE Funtions

for example the preg_match method.
May 5 '20 #2
AjayGohil
83 64KB
Hi,

You can use pre match function for matching string.

preg_match — Perform a regular expression match

Refer Following site for more inforamtion:

https://www.php.net/manual/en/function.preg-match.php
May 15 '20 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jennie Friesen | last post by:
Hello-- I would like to display a different line of text (32 different messages) on refresh, BUT with no repeats. The script I am currently using is: <script language=javascript...
6
by: David | last post by:
Hey folks, I somehow managed to create a script that locks up Mozilla (1.3) tight. Here's the culprit, perhaps y'all can provide some insight into what the trouble is. (This script was cobbled...
4
by: Tony | last post by:
Hello everyone. Im looking for java script , compatible with both IE and Netscape brwoser to show texts vertically writen from bottom to top .. I made a tempate for ecommerce website..and i like...
1
by: Digi4 | last post by:
Hi ! I have to save a word/text document in the database directly using VB.NET and MySql.And also to retrieve it directly from the database. I have chosen Blob datatype for it, but I dont know...
0
by: Twinkle | last post by:
HI Guy How to match two word files char by char.Both Files Having Same Data.i am opening both file into richtextbox.if user select some data in richtextbox1 and click the compare button then...
1
by: uarana | last post by:
Hi All, I've been working with Acess for a little while now but have never had to do a thing of such sort. Any help would be appreciate. Thanks Problem: A report is sent to users to fill...
2
by: Vyz | last post by:
I am looking for a PDF to text script. I am working with multibyte language PDFs on Windows Xp. I need to batch convert them to text and feed into an encoding converter program Thanks for any...
2
by: deejow | last post by:
Hi, In a new record in a "Jobs" table, I enter the "ClaimantID" (the person who this job involves) but I want to know whether or not this particular Claimant has had jobs done on them previously,...
26
by: irisbu | last post by:
Hello everybody! I have created a form in word to automatically create mail merges from an access database. I have the following code: Private Sub CommandButton1_Click() Documents.Open...
1
by: Peng Yu | last post by:
Hi, I use r"\ba\b" to match "a". However, I can not use "\ba::\b" to match "a::b". I would like to match "a::" in "a::b", but not in "a:: b". That is, the character after "::" should be a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.