Good deal ... thank you!
-Original Message-
From: Adam Cameron [mailto:adamcameroncoldfus...@gmail.com]
Sent: Friday, December 14, 2012 9:28 AM
To: cf-talk
Subject: Re: Regular Expression - decimal number positive & negative
Recommend not reinventing the wheel here:
Recommend not reinventing the wheel here:
http://www.cflib.org/udf/NumberUnFormat
On 14 December 2012 14:59, Paul Giesenhagen wrote:
>
> Heya,
>
> I know that some will know this quickly ... but I have ReplaceNoCase(str,
> "[^0-9\.]","","ALL")
>
> And this takes -5 to 5 ... which is not what
A contrived, slightly expanded example based upon Nathan's code...
samples = {
a = "5.24",
b = "-5.24",
c = "5",
d = "-5",
e = "$5.24",
f = "$5,244.22"
};
for ( key in samples )
{
writeOutput( reReplace( reReplace( samples[k
So you need something like
[^0-9\.-]
This just adds the dash to your existing match. You could get a lot better
though, like this
-?\d+(\.\d+)?
-? matches an optional negative indiator, aka a dash
\d+ is just numbers, same as 0-9, the only part of this regex that is
required
(\.\d+)? means mat
bject: Re: Regular Expression Help
Give this a go:
).)+(?)'
, '$0}~'
) />
It uses the java replaceAll regex function so that it can do the negative
lookbehind to ensure existing correct items are not changed, meaning it can be
run multiple times.
Accept
Give this a go:
).)+(?)'
, '$0}~'
) />
It uses the java replaceAll regex function so that it can do the negative
lookbehind to ensure existing correct items are not changed, meaning it can be
run multiple times.
Accepts any character (except newline) until it finds a clos
This might be more of what you are looking for. It captures special
characters as well and should fit more in line to what you want.
", "$1}~" )#" />
2011/6/14 Patrick Santora
> If you'd like you can use the underlying java implementation of replaceAll.
>
>
> ", "$1}~" )#"
> />
>
> Should sh
If you'd like you can use the underlying java implementation of replaceAll.
", "$1}~" )#"
/>
Should show: ~{Test Information2}~~{Test
Information}~~{Test Information4}~~{Test
Information}~
-Pat
On Tue, Jun 14, 2011 at 7:49 AM, Patrick Kerley wrote:
>
> I have a regular expression issue.
>
>
Solved!
(http://pics.mysite.com/ + [a-zA-Z\.])*
http://pics1.mysite.com/xxx.jpg and http://pics.mysite.com/xxx*.jpg are both
rejected
and http://pics.mysite.com/xxx.jpg is accepted.
>Ah, cool. Didn't know about AntiSamy. Reading up :)
>
>On Thu, Dec 3, 2009 at 5:18 PM, Andrew Grosset wrot
Ah, cool. Didn't know about AntiSamy. Reading up :)
On Thu, Dec 3, 2009 at 5:18 PM, Andrew Grosset wrote:
>
> Yes that would work but this is part of an antisamypolicy.xml file that
> filters all user input - for more info see: "Using AntiSamy to protect your
> CFM pages from XSS hacks"
> htt
Yes that would work but this is part of an antisamypolicy.xml file that filters
all user input - for more info see: "Using AntiSamy to protect your CFM pages
from XSS hacks"
http://tinyurl.com/yhl34tn
>how about ?
>
>On Thu, Dec 3, 2009 at 4:55 PM, Andrew Grosset wrote:
>
>>
~~
http://pics\.mysite\.com/.*?\.(gif|jpg|jpeg|png|bmp)\Z",picUrl)
EQ 0>
// don't allow the pic
There is no reason to escape the : or the / like you've done in your
example. Neither of those are special characters.
~|
Want t
how about ?
On Thu, Dec 3, 2009 at 4:55 PM, Andrew Grosset wrote:
>
> I'm trying to build a regular expression that only accepts images from "
> http://pics.mysite.com"; (part of an antisamy policy)
>
> my expression:
>
> ^((http\:\/\/pics\.mysite\.com) + ([a-zA-Z\.]))*$
>
> the intention is t
many thanks! I was working on an "antisamy" script which uses a "whitelist" to
parse user input and this regular expression appeared to be not working, turns
out that there appears to be a bug when using "style" as an inline attribute of
a tag such as div or span.
Andrew.
~~~
Damn wireless keyboards! ;-)
On Sat, Mar 14, 2009 at 5:54 AM, Peter Boughton wrote:
>
> >2) any time you need to use "-", it needs to be the character in the
>
> You missed the critical word! ;)
>
> It needs to be the LAST character in the set.
>
>
>
>
~~~
>2) any time you need to use "-", it needs to be the character in the
You missed the critical word! ;)
It needs to be the LAST character in the set.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic releas
[A-Za-z0-9_:%\$-]+
Does that work for ya? Two things that jump out at me:
1) You're escaping several items that don't need escaping, and
2) any time you need to use "-", it needs to be the character in the
character class (otherwise the regex engine thinks you're trying to define a
range)
HTH
> I thought you cannot just place a . or \ as they are special
> characters.
The . is not special when used within a character class (the square brackets).
i.e. You do *not* need to escape [.] - that will match dot, not 'any character'.
> I also need to find a double . not a single.
A charact
That is correct. Try this, with \ as escape character:
REFind('[##\.\\/%]',myString)
> I thought you cannot just place a . or \ as they are special
> characters. I also need to find a double . not a single.
>
>
> right now I am using '[##\\&%]' and it is returning true on every
> evaluatio
I thought you cannot just place a . or \ as they are special characters. I also
need to find a double . not a single.
right now I am using '[##\\&%]' and it is returning true on every evaluation.
>You'd treat those characters as a character set like so:
>
>
>
>
>
>
>
>Putting the characters i
You'd treat those characters as a character set like so:
Putting the characters inside the square brackets forces the regex to look
for each of those chars individually instead of as one string.
andy
-Original Message-
From: Mike Wesling [mailto:[EMAIL PROTECTED]
Sent: Wednesday
On Fri, Oct 31, 2008 at 1:04 PM, Matthew Friedman <[EMAIL PROTECTED]> wrote:
> I just found an issue with this regexp
>
>
>
> this works great if it is not the first word or only word in the string.
>
> what do I need to do to update the regexp to pick up the bad word it is the
> first last or
Good call. Try this, seems to work in initial testing:
> I just found an issue with this regexp
>
> clean_skills)>
>
> this works great if it is not the first word or only word in the
> string.
>
> what do I need to do to update the regexp to pick up the bad word it
> is the first last
Typo:
On Fri, Oct 31, 2008 at 1:09 PM, Sonny Savage <[EMAIL PROTECTED]> wrote:
>
>
>
>
> On Fri, Oct 31, 2008 at 1:04 PM, Matthew Friedman <[EMAIL PROTECTED]>wrote:
>
>> I just found an issue with this regexp
>>
>>
>>
>> this works great if it is not the first word or only word in the string.
I just found an issue with this regexp
this works great if it is not the first word or only word in the string.
what do I need to do to update the regexp to pick up the bad word it is the
first last or only word in the string also.
Thank you again for all of your help.
Matt
~~~
Figured out the issue, this works great.
Thank you, thank you, thank you
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440
Forgot about Ryan Swanson's slick little tool. It certainly validates and
picks up the middle 'kiss' in his validator, using either '\W' or '^a-zA-Z0-9_'
as the filter:
http://ryanswanson.com/regexp/#start
~|
Adobe® ColdFusio
Hm, that should work, certainly. Did you try that 3rd option?
That should find any use of the word 'kiss' when it's surrounded by any
non-alpha characters. Sadly I don't have access to my CF environment right at
the moment, so I can't test :(
>Not sure what I am doing wrong but this is
Not sure what I am doing wrong but this is not working.
I have the string "kissess are goodkissthe girlfriend"
Kiss is a badword, and this regexp is not picking it up.
Please advise and thanks for your help.
Matt
> I think you want something like this:
>
> ]#badword#[\s\<])",skills)>
>
> You
I think you want something like this:
]#badword#[\s\<])",skills)>
You may want to expand it to non-alphanumeric wrappers, though, to catch
punctuation: "he gave her a kiss."
which is the same as
~|
Adobe® ColdFusion® 8
Here's one approach:
http://siriusinnovations.com
Description: This is the description
Version: 2.0
Author: Philip Hayes
Author URL: http://siriusinnovations.com
--->
">
#trim(reReplace(commentLine,
regexCommentFields, "\1"))##trim
That's pretty cool. i have never seen that tag before. I'll try it.
Thanks
On Jan 23, 2008, at 11:58 AM, Claude Schneegans wrote:
>> Is there anybody out there who can help me do this?
Sure, there is CF_REextract.
It will return all your fields in a list or a query, and even read the
file fo
Although it will still work exactly the same, it actually finds everything
between the first instance of
I used html comments for testing and forgot to change the --> to --->
..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
~~~
Assuming there is just one comment block, cffile read the file and try this
on it...
trim(rereplace(rereplace(theFileContent, "(.*?.*)", "\2",
"all"), "(.*?):(.*?)#chr(13)#", "\1", "all"))
It will find and use only the first CF comment block that it finds...
meaning everything in the file starti
>>Is there anybody out there who can help me do this?
Sure, there is CF_REextract.
It will return all your fields in a list or a query, and even read the
file for you.
See: http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm
~
That may be what I did, can't remember. But... that method worked and was 16
times faster ;-)
-Original Message-
From: chopper [mailto:[EMAIL PROTECTED]
Sent: Friday, May 18, 2007 12:12 PM
To: CF-Talk
Subject: Re: Regular Expression to count links
True about the runaway loop--- i
t; -Original Message-
> From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 17, 2007 11:53 PM
> To: CF-Talk
> Subject: RE: Regular Expression to count links
>
> Actually... the while loop I posted is considerably fas
On Friday 18 May 2007, K Simanonok wrote:
> Tom, you may be well-intentioned, but do you realize your posts were
> useless? A question like "Hey buddy, can you tell me where the train
> station is?" is never intended to be taken so literally that "yes" is a
> worthwhile answer.
You didn't ask 'ho
That's also a runaway loop when there are no links found ;-)
-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 17, 2007 11:53 PM
To: CF-Talk
Subject: RE: Regular Expression to count links
Actually... the while loop I posted is considerably f
-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 17, 2007 11:53 PM
To: CF-Talk
Subject: RE: Regular Expression to count links
Actually... the while loop I posted is considerably faster. About 16ms
faster. Maybe its the loop or the cfscript... I
Actually... the while loop I posted is considerably faster. About 16ms
faster. Maybe its the loop or the cfscript... I dunno.
-Original Message-
From: chopper [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 17, 2007 11:33 PM
To: CF-Talk
Subject: Re: Regular Expression to count links
It
while(findnocase(" {
> str = replacenocase(str, " links = links + 1;
> }
> return links;
> }
>
>
> This one basically says:
> 1) count the instance of "
"mailto:[EMAIL PROTECTED]
Sent: Thursday, May 17, 2007 9:52 PM
To: CF-Talk
Subject: Re: Regular Expression to count links
Thanks Charlie, looks like your solution will work, I'll test.
Andy, I appreciate your suggestion even if it won't work.
Tom, you may be well-intentioned, but
Thanks Charlie, looks like your solution will work, I'll test.
Andy, I appreciate your suggestion even if it won't work.
Tom, you may be well-intentioned, but do you realize your posts were useless?
A question like "Hey buddy, can you tell me where the train station is?" is
never intended to b
That is simly great! I have tested the first expression and it worked like a
charm. I haven't tested the second one yet, I will post the results once I test
it.
Thank you very much for your help.
-BK
>I haven?t played with javascript regexes much so I'd personally send it off
>to be processe
I havent played with javascript regexes much so I'd personally send it off
to be processed via cf asynchronously.
In which case, you'd be back to CF regular expressions and a little more
control (to me anyway)
rereplace(html, "(.*?<\/td>)", "\1\2", "all")
rereplace(html, "(.*?>)", "\1\2", "all")
Thanks for the reply!
I am trying to do this on the client side. Also I want do this whole thing
using regex and avoid using loops and comparisons, as the HTML can be huge and
I want it to be fast. Any other suggestions.
Is it even possible to get what I want using regular expressions?
Thank
>>I need help with the following search and replace using regular
expressions.
You could use CF_REExtract (see
http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm )
First get all occurences of input tags in a query,
then loop in the query, check the presence of string "repla
yeah. can't use multiple character delimiters in CF. Not with native
CF array/list functions.
if you use split(), you can.
#listLen(myString, '_!_')#
#arrayLen(myArray)#
On 5/16/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> On Wednesday 16 May 2007, Andy Matthews
On Wednesday 16 May 2007, Andy Matthews wrote:
>
I'm not sure that does what you think it does.
http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=0353.htm#3082862
"If this parameter contains more than one character, Col
Not really.
Do you care WHAT the link is or do you just want to know how many links
there are? If you're just looking to find the number of links in a string,
then use list functions with "href " as your delimiter.
That should get you close to how many links are in your string.
-Original
On Wednesday 16 May 2007, K Simanonok wrote:
> Is it possible to use a regular expression to count the number of links HREF="http://something.com";>like so in a given block of text?
Yes, finding matches of a pattern in a block of text is exactly what it is
for.
--
Tom Chiverton
**
Kind of a hack Im sure it can be done better but this works. Im still
learning :)
--
~Eric
~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7.
Free Trial. http://www.a
I am working on a variable mask version as I have time. This one will
atleast mask the domain for now.
Eric
On 2/20/07, Eric Haskins <[EMAIL PROTECTED]> wrote:
>
> "([a-zA-Z0-9_\-\.]+)@((([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})",
> "[EMAIL PROTECTED]")/>
>
>
> Try this one
>
> Eric
>
>
Offhand, I think your best bet is to use a regex to identify everything
from the @ to the TLD, then use the len returned by refind to do a
replace of it. There are a number of really good regexes for
finding/dissecting emails out there. CFLib.org is a good place to start.
--Ben Doom
K Simano
Try this one
Eric
On 2/20/07, K Simanonok <[EMAIL PROTECTED]> wrote:
>
> I would like to use a regular expression to camouflage email addresses in
> a forum I'm building. I'd like to replace just the domain name (not the
> .com or .net or other extension though) with x's:
>
> FROM THIS: [EM
: Peter Boughton [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 12:21 PM
To: CF-Talk
Subject: Re: regular expression - callback function
Thanks Ben, that's great! :D
I did solve my main problem another way, but I should be able to get
more elegant code with your method, so I
Thanks Ben, that's great! :D
I did solve my main problem another way, but I should be able to get more
elegant code with your method, so I'll have another go tomorrow.
>Peter,
>
>I have function that handles something similar:
>
>http://www.bennadel.com/blog/191-REReplace-Java-Function-Pointers
Peter,
I have function that handles something similar:
http://www.bennadel.com/blog/191-REReplace-Java-Function-Pointers-Freaki
n-Sexy-.htm
OR: http://www.bennadel.com/index.cfm?dax=blog:191.view
Take a look and that and see if it helps. It basically takes a function
pointer that will be applie
That would not match 0 through 9.999 unless they were formatted into 2
digit numbers like 00, 01, etc... 09.999 It also wouldnt match anything
between 1 and 0 like .999 unless it was formatted like 00.999
Try this one: ^\d{0,2}(\.\d{1,7})?$
I dont know what you are using it for
: Regular Expression Help
Ben Nadel wrote:
> Not really sure what exactly you are looking to do, but the regular
> expression pattern for numbers under 100 with 7 decimals would be:
>
> \d{2}(\.\d{1,7})?
I'd anchor it, assuming that this is supposed to be the whole string:
^\d{2}(\.
Ben Nadel wrote:
> Not really sure what exactly you are looking to do, but the regular
> expression pattern for numbers under 100 with 7 decimals would be:
>
> \d{2}(\.\d{1,7})?
I'd anchor it, assuming that this is supposed to be the whole string:
^\d{2}(\.\d{1,7})?$
--Ben Doom
~~~
Not really sure what exactly you are looking to do, but the regular
expression pattern for numbers under 100 with 7 decimals would be:
\d{2}(\.\d{1,7})?
This makes the decimal optional (with 1 to 7 decimal places). Of course,
this does not protect AGAINST numbers over one hundred. For that you
wo
Ls;
}
-Original Message-
From: Eric Haskins [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 11:31 PM
To: CF-Talk
Subject: Re: Regular Expression Help
Dave how did it turn out??
~Eric
~|
Upg
Dave,
While you probably don't need this anymore, I thought I would post it up
here as your question inspired my blog post:
http://www.bennadel.com/blog/487-Using-Verbose-Regular-Expressions-To-Ex
plain-Url-Auto-Linking-In-ColdFusion.htm
[ OR http://bennadel.com/index.cfm?dax=blog:486.view ]
Che
Dave how did it turn out??
~Eric
~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products
sday, January 23, 2007 2:03 PM
To: CF-Talk
Subject: Re: Regular Expression Help
Hi,
The RegExp below is giving me more than I want. It is returning things that
I don't want:
mailto:
urn:schemas-microsoft-com:office:office
and others. I want to chnage it to only return url's starting
(?:href=|href="|href=')((?:http|https)://(.+))(?:">|'>|>)
Does this help at all??? This will find all http or https links??
Eric
On 1/23/07, Eric Haskins <[EMAIL PROTECTED]> wrote:
>
> When I test it tells me not enough (
>
> I am troubleshooting it now out sick today but list draws me back
Try this one
https?:)\/\/)|(www\.|ftp\.))[-[:alnum:]\?%,\.\/&##!@:=\+~_]+[A-Za-z0-9\/
])
-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 2:03 PM
To: CF-Talk
Subject: Re: Regular Expression Help
Hi,
The RegExp below is gi
When I test it tells me not enough (
I am troubleshooting it now out sick today but list draws me back
everytime lol
Eric
On 1/23/07, Dave Phillips <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> The RegExp below is giving me more than I want. It is returning things
> that I don't want:
>
> mailto
Hi,
The RegExp below is giving me more than I want. It is returning things that I
don't want:
mailto:
urn:schemas-microsoft-com:office:office
and others. I want to chnage it to only return url's starting with http: or
https:. Here's what I currently have:
([A-Za-z][A-Za-z0-9+.-]{1,120}:[A-
Sent: Tuesday, January 23, 2007 10:25 AM
To: CF-Talk
Subject: Re: Regular Expression Help (Solution?)
I think I have a solution, but if a few of you could review and see if
it can be any faster or more efficient (or if I'm missing something) I'd
appreciate it. To find the end of the
?
www.bennadel.com/ask-ben/
-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 9:55 AM
To: CF-Talk
Subject: Re: Regular Expression Help
Thanks, I'm working on something with that now, but does anyone know if
there is a function or tag out there so
I think I have a solution, but if a few of you could review and see if it can
be any faster or more efficient (or if I'm missing something) I'd appreciate
it. To find the end of the URL I'm looking for a single quote, double quote or
space.
function extractURLs(inputString) {
var nPos
Thanks, I'm working on something with that now, but does anyone know if there
is a function or tag out there someone has already written that does this? It
seems that I should not be the first person who needs to feed a function a body
of text and get back a list of the URL's in that text.
Tha
This one might be better:
http://www.manamplified.org/archives/000318.html
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 9:50 AM
To: CF-Talk
Subject: RE: Regular Expression Help
This page might get you pointed in the right
This page might get you pointed in the right direction.
http://foad.org/~abigail/Perl/url2.html
-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 23, 2007 8:36 AM
To: CF-Talk
Subject: Regular Expression Help
Hi,
RegExp's are not my forte and
Just so everybody posting [^a-z] as a suggestion, the original list does not
contain all the letters. This may just be a typo, but the list
'abcdefghiklmnpqrstvwyz' does not contain the letters 'j', 'o' or 'u'.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacrament
I don't think the ^ needs to be inside the brackets because that is not a
character unless it's escaped, it indicates to start at the beginning of the
line.
It has a different meaning inside of brackets []. Inside brackets it means
NOT. So [a-z] is all lower case letters, [^a-z] is everything
i think he was doing a rereplaceNoCase() (i deleted the original and
too lazy to check the archives)...in which case he wouldn't need to
explicitly specify the upper and lowercase values :)
On 8/16/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> If I am reading the original post correctly, there are
If I am reading the original post correctly, there are some letters that are
allowed [abcdefghiklmnpqrstvwyz].
If that is correct one would be looking for [^a-ik-npq-tw-z/s]. But this
assumes that your list wasn't just a typo and you really do not want to replace
all lower case letters [^a-z/s
>>REREPLACENOCASE(form.AA_list, '[^abcdefghiklmnpqrstvwyz]','','all')
Try REREPLACENOCASE(form.AA_list, '[^a-z]','','all')
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address:
Never done regexs with CF but you usually don't have to list all a-z,
you just do [a-z] and I don't think the ^ needs to be inside the
brackets because that is not a character unless it's escapted, it
indicates to start at the beginning of the line. While this is a stab
in the dark, I'd try ^[a-z]
Not sure exactly what you are saying, but you can include "white space" in
your regular expression:
[^a-z\s]
a-z : alphabet
\s : special character means "white space"
...
Ben Nadel
www.bennadel.com
-Original Message-
From: Richard Colman [mailto:[EMAIL PROTECTED]
Works great! Thanks!
Paul Giesenhagen
QuillDesign
417-885-1375
http://www.quilldesign.com
- Original Message -
From: "Munson, Jacob" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Tuesday, May 30, 2006 2:31 PM
Subject: RE: Regular Expression
> This sh
This should do it:
ReReplaceNoCase(getContent.title, '[^a-z0-9\- ]', '', 'all')
By the way, that is keeping individual spaces as well, but you probably
knew that.
> -Original Message-
> From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 30, 2006 1:26 PM
> To: CF-Talk
>
ReReplaceNoCase(getContent.title, '[^a-z0-9\-]+', '', 'all')
The "\" in front of the "-" is not needed, but it works fine and I like to
see it escaped.
Also, I took out the space " " but put it back in if you wanted it.
...
Ben Nadel
www.bennadel.com
-Original Message
ReReplaceNoCase(getContent.title, '[^a-z0-9 ]', '', 'all')
I want it to ALSO keep all the hyphens too... but remove everything else except
numbers, alpha and hyphens.
What would I change?
Add the hyphen character, escaped of course. I believe that would look like
this.
[^a-z0-9 \-]
; work.
>
>
> Sincerely,
>
> Andrew
>
>
> -Original Message-
> From: Massimo Foti [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 27, 2006 3:34 PM
> To: CF-Talk
> Subject: Re: Regular Expression : Positive Integer
>
>> My cfinput form field
But
This solution allows a 0 to be entered (which is a whole number, not a
positive integer).
The ^0*... solution would only allow positive integers.
On 2/27/06, Peterson, Andrew S. <[EMAIL PROTECTED]> wrote:
> Massimo wrote:
> > Try this:
> > ^\d\d*$
>
>
> FYI - I also tested ^\d*$ (remove
Massimo wrote:
> Try this:
> ^\d\d*$
FYI - I also tested ^\d*$ (removed one set of \d) and it too seems to
work.
Sincerely,
Andrew
-Original Message-
From: Massimo Foti [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 3:34 PM
To: CF-Talk
Subject: Re: Regular Expr
,
Andrew
-Original Message-
From: Massimo Foti [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 3:34 PM
To: CF-Talk
Subject: Re: Regular Expression : Positive Integer
> My cfinput form field validates via regular_expression, and I want
only
> positive integers accepted. I
Massimo wrote:
> Try this:
> ^\d\d*$
Brilliant! And now my quest to figure out why the heck this works begins
:-)
Sincerely,
Andrew
-Original Message-
From: Massimo Foti [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 3:34 PM
To: CF-Talk
Subject: Re: Regular Expr
I just found a website that might be of some help:
http://www.regularexpressions.info
-Original Message-
From: Peterson, Andrew S. [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 3:29 PM
To: CF-Talk
Subject: Regular Expression : Positive Integer
Hi,
My cfinput form field va
Try to anchor it to the front and back (so nothing else can be in there?)
^0*[1-9][0-9]*$
or is that understood by cfinput?
On 2/27/06, Peterson, Andrew S. <[EMAIL PROTECTED]> wrote:
> Hi,
>
> My cfinput form field validates via regular_expression, and I want only
> positive integers accepted.
> My cfinput form field validates via regular_expression, and I want only
> positive integers accepted. I'm trying various things, such as
> 0*[1-9][0-9]*, but cannot get a regex yet that only allows positive
> numbers. For example, I can still enter a -5 and it will be accepted
> under this reg
^0*[1-9][0-9]*$
^ and $ anchor the beginning and end of the string.
--Ben
Peterson, Andrew S. wrote:
> Hi,
>
> My cfinput form field validates via regular_expression, and I want only
> positive integers accepted. I'm trying various things, such as
> 0*[1-9][0-9]*, but cannot get a regex yet
> -Original Message-
> From: John Munyan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 10, 2005 3:03 AM
> To: CF-Talk
> Subject: Regular expression help
>
> Hi, I have an url such as
> http://www.blah.com/something/somethingelse/default.cfm stored in a
> database. I wish to use this
I found the fix guys!!! Amazing what a little Googling will do. :P
Rey...
Rey Bango wrote:
> Guys,
>
> I have the following email check but it won't accept a .info email
> address. I'm not a regular expression expert and was hoping someone
> could help me out with this. How could I update the
Thanks Jochem. Works well I was using mailto:[EMAIL PROTECTED]
Sent: 19 April 2005 11:42
To: CF-Talk
Subject: Re: Regular expression in Homesite
Kevin Roche wrote:
>
> Is there a person out there who is able to write a regulart expression
that
> I can use in Homesite+ to change a line
1 - 100 of 242 matches
Mail list logo