Bitcoin Forum
September 27, 2018, 10:05:53 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: RegEx to match transaction id?  (Read 1375 times)
Tonako
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
April 08, 2014, 05:10:50 AM
 #1

Hello all

Please help me make a regular expression for PHP

[a-zA-Z0-9] and 65 characters?

'/^[a-zA-Z0-9]{65}$/' - true ?)))
1538085953
Hero Member
*
Offline Offline

Posts: 1538085953

View Profile Personal Message (Offline)

Ignore
1538085953
Reply with quote  #2

1538085953
Report to moderator
1538085953
Hero Member
*
Offline Offline

Posts: 1538085953

View Profile Personal Message (Offline)

Ignore
1538085953
Reply with quote  #2

1538085953
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538085953
Hero Member
*
Offline Offline

Posts: 1538085953

View Profile Personal Message (Offline)

Ignore
1538085953
Reply with quote  #2

1538085953
Report to moderator
jeffg
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile WWW
April 08, 2014, 12:47:06 PM
 #2

Hello all

Please help me make a regular expression for PHP

[a-zA-Z0-9] and 65 characters?

'/^[a-zA-Z0-9]{65}$/' - true ?)))

Should be a-f and only 64 chars (32bytes):

Code:
[a-fA-F0-9]{64}
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!