473,471 Members | 4,616 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ReWriteRuel and Regular Expressions

Hi folks,

My apologies if this is the wrong group to post to on this subject, and
any guidance to the correct group would be appreciated.

I am attempting to create a RewriteRule entry [for URL rewriting] and I
am uncertain if what I would like is even possible.

Assuming a URL of the format abc_def_hij.html is requested, and need to
be written as script.php?x=abc&x=def&x=hij, I can do regexp to
successfully do the rewrite on that.

The problem is that the number of words with underscore separators is
unknown, so I could need to rewrite abc_def.html, or
abc_def_hij_klmnop_qrst_tuv_wxyz.html - I won't have knowledge of the
request in advance (although there will be a practical limit of no more
than about 10 "parameters" in total.)

Is there a regexp that can help out in this instance, or should I tell
the client his hopes and dreams have been mercilessly shattered? ;-)

Elmo

Sep 20 '05 #1
1 1135
ja***@webgenius.com.au wrote:
Hi folks,

My apologies if this is the wrong group to post to on this subject, and
any guidance to the correct group would be appreciated.

I am attempting to create a RewriteRule entry [for URL rewriting] and I
am uncertain if what I would like is even possible.

Assuming a URL of the format abc_def_hij.html is requested, and need to
be written as script.php?x=abc&x=def&x=hij, I can do regexp to
successfully do the rewrite on that.

The problem is that the number of words with underscore separators is
unknown, so I could need to rewrite abc_def.html, or
abc_def_hij_klmnop_qrst_tuv_wxyz.html - I won't have knowledge of the
request in advance (although there will be a practical limit of no more
than about 10 "parameters" in total.)

Is there a regexp that can help out in this instance, or should I tell
the client his hopes and dreams have been mercilessly shattered? ;-)

Elmo


And your PHP question is???

Try one of the Apache mailing lists on www.apache.org.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kenneth McDonald | last post by:
I'm working on the 0.8 release of my 'rex' module, and would appreciate feedback, suggestions, and criticism as I work towards finalizing the API and feature sets. rex is a module intended to make...
2
by: Sehboo | last post by:
Hi, I have several regular expressions that I need to run against documents. Is it possible to combine several expressions in one expression in Regex object. So that it is faster, or will I...
1
by: Sehboo | last post by:
Hi, I have several regular expressions that I need to run against documents. Is it possible to combine several expressions in one expression in Regex object. So that it is faster, or will I...
4
by: Együd Csaba | last post by:
Hi All, I'd like to "compress" the following two filter expressions into one - assuming that it makes sense regarding query execution performance. .... where (adate LIKE "2004.01.10 __:30" or...
1
by: Allan Ebdrup | last post by:
I have a dynamic list of regular expressions, the expressions don't change very often but they can change. And I have a single string that I want to match the regular expressions against and find...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.