Regular Expression :: Credit Card Numbers
So I have a form field that's for a credit card number, right now it's set up so that it can only contain numbers and can only be 16 digits long.
regCard.Pattern ="^[0-9]{16}$"
What do I add to that so that the first digit cannot be 0?
View Replies
ADVERTISEMENT
If I want my phone number like this...
(XXX)XXX-XXXX
([0-9]{3})[0-9]{3}-[0-9]{4} ....
View Replies
View Related
I think a regular expression maybe the solution to the problem I have. My problem is I am pulling a list from a database which I want to list alphabetically. The problem is, the records are stored with a number before them:
eg."762348 - RecordA" --> So I want just the "RecordA" bit so I can list alphabetically.
What I want to do is strip off everything at the beginning up to the first Alphabetic character. Is a regular expression the way to go?
View Replies
View Related
I need to filter the username entry in the field during the registration. If I'm not mistaken, usernames can't consist of special characters, only international alphabet characters (a-z,A-Z), digits(0-9) and underline allowed.
I tried with something like "._[a-z][A-Z][0-9]" but it doesn't work.
View Replies
View Related
What all is involved in a secure site? Not just good security, but an actual secure connection?
Is it all up to the host? Is there a lot of extra/different ASP stuff? What about credit card authentication? Shopping carts?
View Replies
View Related
How can we validate credit card in ASP?How can we create a dll file in VB?
View Replies
View Related
I'm working on a new project that involves purchasing stuff online. But I don't really know where to start. I know you need to process the cards through a gateway, and that's about it.
What I want is a secure page where the customer enters their credit card info and hits submit. I don't want to process it manually, I want it all to be automatic. I'm not asking for help coding this, because I understand its very complicated, and I don't trust that I will be able to make it secure if I were to do it myself.
What I'm asking is, can anyone recommend a good ASP script for processing credit cards? (all cards will be from the UK, so visa, mastercard, maestro, switch, solo etc...).
I don't want a shopping portal, just the credit card processing bit is what I'm after (anything under $100 would be ideal)! And also, what is a good gateway to use in the UK? And any other info/tips you can give me would be great too!
View Replies
View Related
I am trying to create a simple, secure credit card payment system using either public/private key encrytpion.
I know public key encryption is probably more secure, but it is also slower from what I have been reading. What I am looking for is some examples of public or private key encryption.
View Replies
View Related
My client wants to have credit card information fields on his forms for his website visitors to be able to buy his wervices by credit card.The credit card info-Brand, number and expiry date will be sent to the server and stored in the database as the .asp page calls itself on Submit.
How secure is this?I've never had to worry about it before but is form information encrypted before being sent to the server? Are there any legal obligations for handling peoples credit card information?The actual credit card payments will be handled manually at the clients company.
View Replies
View Related
where I would start if I wanted to start accepting credit cards as online payment instead of paypal?
View Replies
View Related
I cannot seem to find an asp script that will succesfully validate a credit card for me. I have 3 fields to work with. Very simple I thought.
CC_NAME
CC_TYPE
CC_EXPIRE
I just want to check the cc againt the algorithm used to verify number matches type and expire date hasn't past.
View Replies
View Related
I have a website for our online store. Until now we have received payment through email, which we then run in our local store's Credit Card machine.
We want to move up from there. I have signed up for Paypal and that is easy.
We want to also be able to accept the CC info in our own website securely. We are not looking to actually run the Credit Card, we just want to get the information from the user and pass it on to ourselves in a secure manner, so that we can run the information locally on our Credit Card machine.
So, I guess, my questionj is not really about credit card's at all. Rather I am asking, how can I get a form's data sent to my computer 100% (or close to that) securely.
View Replies
View Related
Either in the US or EU, when a customer makes a credit card purchase online, for how long after can the vendor legally store the encrypted credit card number in its database?
Its extremely hard to find this info online.
View Replies
View Related
I know how to build forms with ASP and process user input. Now i want to take credit card payments via a form. i will then download the details and process them via our credit card
machine.
do i just create a regular ASP form and use a certificate on the server to encrypt the data ? ie https://server/getpaymentform.asp
there is nothing special about the form is there? it is just the same as the form i have been using for user input.
View Replies
View Related
I need to add code to a page that will accept credit card info and process it. The company that will do the processing is authorizenet.com. Problem: I have talked to these people and they have not been clear on how to do this. Additionally, I received from them a 75-page document that gives no examples.
I was under the impression that it should be something easily accomplished; i.e. a few lines of code in my html. Does anyone out there have an example of how to do this?
View Replies
View Related
I'm trying to get some recommendations on credit card authorisation suppliers such as paypal, worldpay or 2checkout.
Seems like a bit of a mine field so wondering if anyone has any view, positive or negative on these (or other) suppliers.
I notice paypal is free but chargers about 3% or the goods sold which isn't bad for a small startup. I think Worldpay is about 2% but charges a monthly fee.
Is it easy to get this up and running on a site? do you connect to theirs to do the payment or just fire secured data to them to process? is one a better deal, safer and easier to implement than another?
View Replies
View Related
Can any1 help me or suggest a helpful link for coding for Credit-card transaction.
View Replies
View Related
I've been setting up an online payment system for our site, and it all works fine except for one part. When it submits to the merchant's site, the customer is greeted with a blank page for a few seconds while it verifies the card. Then it redirects to our site.
Is there any way to do a form POST to another site without actually making the browser go to that page?
View Replies
View Related
Can anyone give me a regular expression for finding a URL in a string of
text?
Essentially what I want to do is find URLs in a text string and embed
them in {a href...} tags. However, I haven't used regular expressions
all that much in ASP/VBSCRIPT.
View Replies
View Related
I need to create a regular expression for a date field that works only
in the following format MM/DD/YYYY with the / in the format. No other
format can be inputted into the field. I need 2 numbers for MM 2
Numbers for DD and 4 numbers for YYYY. If the users enter 1 number for
month, 1 for day he should get an alert.
I have this code and thought it was working but it is not.
var RegExPattern = /(d{1,2})W(d{1,2})W(d{4})/;
View Replies
View Related
i know there are tutorials for Regular Expressions too, but can a 'simple' example be posted in these forms
View Replies
View Related
I'm going down the road of learing the pattern matching in regular
expressions, and I'm trying to convert the characters into English in my
head so I can see whats happening...
For clarity with this one...
[b]([^]]+)[/b]
Ok - the first thing I did was break it up - because it looks a nightmare
like that...so now I have..3 parts..
[b]
([^]]+)
[/b]
In part 1 I under stand that the is telling the expression that a special
character is coming next, thus escaping the [ and ] respectively, thus ,
and in part 3 I understand the same and also the escaping of the /, thus
- no problems so far...
In part 2 I'm assuming that the brackets are seperating a "pattern" so that
I might reference it as $1 later on, I understand that the [^] are saying
"not enclosed" so therefore it's going to ignore a ], the + sign however
perplexes me - my VBScript book says "Matches the preceeding character one
or more times" - so does that mean the ] just before it, or does it mean the
character OR characters defined within the [ ] etc?
View Replies
View Related
looking for a regular expression example for asp in vbscript. just want to search for a name in some text, possibly display that text.
View Replies
View Related
I'm trying to find a regular expression function to strip contents out of a string which lie between square brackets [].I've got one for chevrons (to remove HTML - as below), but would prefer not to have to replace the chevrons for square brackets first.Code:
function funRemoveHTML( strText )
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
funRemoveHTML = RegEx.Replace(strText, "")
end function
how I can modify this for square brackets as opposed to chevrons?
View Replies
View Related
I am working on an ASP page which looks in a set of text for web page URLs.
Using the VBScript.RegExp regular expression object, I have this regular
expression:
[a-z]+.[a-z]+.[a-z]+/
And it works well finding URL's such as: windowsupdate.microsoft.com,
www.cnn.com, etc.
However, I have been trying to modify it to ALSO find URL's like this:
www.amazon.com/index/sell/ie6.html?val=1
Or
www.microsoft.com/windowsxp
Any ideas?
View Replies
View Related
I'm making url's out of text starting with "www" etc. but I've got two problems. Firstly, if the string begins with www it doesn't get matched, and secondly, if there's a dot or a comma directly after the url, it becomes part of the url. I hope someone who is better at this than me will be able to help me out. Code:
reg.Pattern = "(s)(www)(S)(S+)"
s = reg.Replace(s, "$1<a href=""http://$2$3$4"" target=""_blank"">$2$3$4</a>")
View Replies
View Related
I have been using a regular expression that I don’t uite understand to
filter the valid email address. My regular expression is as follows:
<asp:RegularExpressionValidator id="valValidEmail"
runat="server"
ControlToValidate="txtEmail"
ValidationExpression="^([_a-z0-9-]+)(.[_a-z0-9-]+)*@([a-z0-9-]+)(.[a-z0-9-]+)*(.[a-z]{2,4})$"
ErrorMessage="Invalid Email address."
Display="None">
</asp:RegularExpressionValidator>
Can someone explain me why the email address Join Bytes! is
considered an invalid email address?
Also can someone explain me what the above regular expression means?
View Replies
View Related
I need to parse the following:
aaa_bbb_d_yyyy_mm.ext
aaa = ITM, CPF, FAC, GEN
bbb = almost anything (even more then 3 chars)
d = M,Q,Y,R
yyyy = year
mm = month
I'm terrible at figuring out regexp so I turn to the kind folk of SP
View Replies
View Related
I have a field that should take a date in the following two formats:
MM/DD/YYYY or MM/DD (and assume it is this year, it will fill in current year)
I have my program checking against two regular expressions. The first one is ok:
Dim regEx
Set regEx = New RegEx
regEx.Pattern = "^(([1-9])|10|11|12)/(([1-9])|((1|2)[0-9])|30|31)/200[0-9]"
If the date checked comes up False, it then goes to this expression:
regEx.Pattern = "^((0[1-9])|(10|11|12))/((0[1-9])|((1|2)[0-9])|30|31)"
My problem is on the second one. If I enter an erroneous date like this: 11/189
It will go through and crash my program.
View Replies
View Related
I am using regular expression to replace the text, This is asp function I have used to replace the text, but it’s not working properly Code:
View Replies
View Related
addContent = replace(addContent,"<font>","")
Right, pretty simple eh!
However, what I need is something to say replace all occurence of strings that start with "<font" to eb replaced by zilch i.e.
<font>
<font color=green>
<font tag=this another=more>
I believe regular expression are the way to go?
View Replies
View Related
any one have a quick regex for making sure that only 0..9 a..f are in a string?
View Replies
View Related
I'm trying to return a sub string using the regular expression object. I've not really used the regular expression object before and I'm finding it a bit clunky to use.
Basically I'm trying to match the 'description' within the string 'file_description_1'
However I'm unsure how to return the partial, would I use the Execute or Replace methods?
Regex looks like this:
With RegularExpressionObject
.Pattern = "file_(.*?)_[0-9]"
.IgnoreCase = False
.Global = True
End With
View Replies
View Related